mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00: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:
parent
b08ba446f6
commit
fca74b1882
1 changed files with 1 additions and 1 deletions
|
@ -1691,7 +1691,7 @@ bool Position::is_draw() const {
|
|||
return true;
|
||||
|
||||
// Draw by the 50 moves rule?
|
||||
if (st->rule50 > 99 && (st->rule50 > 100 || !is_mate()))
|
||||
if (st->rule50 > 99 && !is_mate())
|
||||
return true;
|
||||
|
||||
// Draw by repetition?
|
||||
|
|
Loading…
Add table
Reference in a new issue