Revert "encapsulated positionHistory | bench 1857933"

This reverts commit 2e8c23103f.
This commit is contained in:
rektdie committed 2025-04-12 10:58:56 +02:00
1 parent ce02841a5c
commit 3275cee01e
6 files changed
+37 -34

No files matched your search

+3 -3
View File
@@ -62,8 +62,8 @@ static void PlayRandMoves(Board &board) {
MOVEGEN::GenerateMoves<All>(board);
}
static bool IsGameOver(Board &board, SEARCH::SearchContext& ctx) {
if (SEARCH::IsDraw(board, ctx)) return true;
static bool IsGameOver(Board &board) {
if (board.IsDraw()) return true;
int moveSeen = 0;
@@ -106,7 +106,7 @@ void PlayGame(std::atomic<int>& positions, U64 targetPositions, std::vector<Game
SEARCH::SearchResults safeResults;
MOVEGEN::GenerateMoves<All>(board);
while (!IsGameOver(board, ctx)) {
while (!IsGameOver(board)) {
SEARCH::SearchResults results = SEARCH::SearchPosition<SEARCH::datagen>(board, SearchParams(), ctx);
if (!results.bestMove) break;