ensapsulated nodes | bench 1857933
This commit is contained in:
1 parent
6027dbd377
commit
eff4f50ee8
6 files changed
+56
-45
No files matched your search
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user