1
0
Fork 0
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:
Joona Kiiski 2011-01-06 15:21:30 +02:00 committed by Marco Costalba
parent b08ba446f6
commit fca74b1882

View file

@ -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?