From 1c0be69deec984ec4de0e9021bece6ae8683c354 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 19 Apr 2020 12:52:52 +0200 Subject: [PATCH] Start ASEAN counting from zero Starting from the piece count only applies to Makruk, not to ASEAN. Closes #104. --- src/position.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.0.4