mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Simplify a condition in update of best move
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
f97c5b6909
commit
d40a12f948
1 changed files with 3 additions and 3 deletions
|
@ -1380,15 +1380,15 @@ split_point_start: // At split points actual search starts from here
|
|||
|
||||
if (value > alpha)
|
||||
{
|
||||
if (SpNode && (!PvNode || value >= beta))
|
||||
sp->stopRequest = true;
|
||||
|
||||
if (PvNode && value < beta) // We want always alpha < beta
|
||||
{
|
||||
alpha = value;
|
||||
|
||||
if (SpNode)
|
||||
sp->alpha = value;
|
||||
}
|
||||
else if (SpNode)
|
||||
sp->stopRequest = true;
|
||||
|
||||
if (value == value_mate_in(ply + 1))
|
||||
ss->mateKiller = move;
|
||||
|
|
Loading…
Add table
Reference in a new issue