From 88f97ca61e53e39a185bd3b983e0236025938835 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 15 Oct 2021 13:14:16 +0200 Subject: [PATCH] Adjust max NNUE pieces for two board variants --- src/variant.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/variant.h b/src/variant.h index 852eb4a..36c91c9 100644 --- a/src/variant.h +++ b/src/variant.h @@ -263,6 +263,8 @@ struct Variant { if (pieceToChar.find(token) != std::string::npos || pieceToCharSynonyms.find(token) != std::string::npos) nnueMaxPieces++; } + if (twoBoards) + nnueMaxPieces *= 2; // For endgame evaluation to be applicable, no special win rules must apply. // Furthermore, rules significantly changing game mechanics also invalidate it. -- 1.7.0.4