encapsualted position index and array | bench 1857933

This commit is contained in:
rektdie committed 2025-04-12 20:39:00 +02:00
1 parent b669fa329e
commit 3225b9c665
8 files changed
+19 -28

No files matched your search

+2 -1
View File
@@ -26,6 +26,8 @@ void Board::Reset() {
moveList = std::array<Move, MAX_MOVES>();
positionIndex = 0;
currentMoveIndex = 0;
hashKey = 0ULL;
@@ -391,7 +393,6 @@ bool Board::MakeMove(Move move) {
}
positionIndex++;
positionHistory[positionIndex] = hashKey;
return true;
}