From fca74b18825b72fa262b927b56130e7024a7272b Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Thu, 6 Jan 2011 15:21:30 +0200 Subject: [PATCH] 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 --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/position.cpp b/src/position.cpp index ae28805c..aac03eb2 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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? -- 2.39.2