encapsualted position index and array | bench 1857933
This commit is contained in:
1 parent
b669fa329e
commit
3225b9c665
8 files changed
+19
-28
No files matched your search
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user