Adjust max NNUE pieces for two board variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 15 Oct 2021 11:14:16 +0000 (13:14 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 15 Oct 2021 11:14:16 +0000 (13:14 +0200)
src/variant.h

index 852eb4a..36c91c9 100644 (file)
@@ -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.