ensapsulated nodes | bench 1857933

This commit is contained in:
rektdie committed 2025-04-11 02:03:53 +02:00
1 parent 6027dbd377
commit eff4f50ee8
6 files changed
+56 -45

No files matched your search

+3 -1
View File
@@ -105,6 +105,8 @@ void PlayGame(std::atomic<int>& positions, U64 targetPositions, std::vector<Game
std::memset(SEARCH::killerMoves, 0, sizeof(SEARCH::killerMoves));
SEARCH::history.Clear();
SEARCH::SearchContext ctx;
try {
PlayRandMoves(board);
int staticEval = HCE::Evaluate(board);
@@ -112,7 +114,7 @@ void PlayGame(std::atomic<int>& positions, U64 targetPositions, std::vector<Game
MOVEGEN::GenerateMoves<All>(board);
while (!IsGameOver(board)) {
SEARCH::SearchResults results = SEARCH::SearchPosition<SEARCH::datagen>(board, SearchParams());
SEARCH::SearchResults results = SEARCH::SearchPosition<SEARCH::datagen>(board, SearchParams(), ctx);
if (!results.bestMove) break;
safeResults = results;