mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Use alpha instead of beta-1
It is more directly related to a fail-low. No functional change.
This commit is contained in:
@@ -716,7 +716,7 @@ namespace {
|
|||||||
&& (ss-1)->reduction
|
&& (ss-1)->reduction
|
||||||
&& threatMove != MOVE_NONE
|
&& threatMove != MOVE_NONE
|
||||||
&& allows(pos, (ss-1)->currentMove, threatMove))
|
&& allows(pos, (ss-1)->currentMove, threatMove))
|
||||||
return beta - 1;
|
return alpha;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user