mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Simplify 50 move rule condition
We never reach a position where rule50 > 100. When rule50 == 100, it's either draw or mate and there is no way search could go deeper. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
b08ba446f6
commit
fca74b1882
@@ -1691,7 +1691,7 @@ bool Position::is_draw() const {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Draw by the 50 moves rule?
|
// Draw by the 50 moves rule?
|
||||||
if (st->rule50 > 99 && (st->rule50 > 100 || !is_mate()))
|
if (st->rule50 > 99 && !is_mate())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Draw by repetition?
|
// Draw by repetition?
|
||||||
|
|||||||
Reference in New Issue
Block a user