From: Fabian Fichter Date: Sun, 19 Apr 2020 10:52:52 +0000 (+0200) Subject: Start ASEAN counting from zero X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1c0be69deec984ec4de0e9021bece6ae8683c354;p=fairystockfish.git Start ASEAN counting from zero Starting from the piece count only applies to Makruk, not to ASEAN. Closes #104. --- diff --git a/src/position.cpp b/src/position.cpp index a9225e8..44d5401 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1434,7 +1434,7 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) { && counting_limit()) { st->countingLimit = 2 * counting_limit(); - st->countingPly = count(sideToMove) == 1 ? 2 * count() : 0; + st->countingPly = counting_rule() == MAKRUK_COUNTING && count(sideToMove) == 1 ? 2 * count() : 0; } // Update king attacks used for fast check detection