resetting killer and history tables on bench and ucinewgame | bench 1146300

This commit is contained in:
rektdie committed 2025-03-15 13:04:03 +01:00
1 parent 572b1686b5
commit 29bac3a101
4 files changed
+16 -5

No files matched your search

+5
View File
@@ -1,6 +1,7 @@
#include "uci.h"
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <thread>
#include "types.h"
@@ -112,7 +113,11 @@ void UCILoop(Board &board) {
// parse UCI "ucinewgame" command
if (input.find("ucinewgame") != std::string::npos) {
board.SetByFen(StartingFen);
// Clearing
TT.Clear();
std::memset(killerMoves, 0, sizeof(killerMoves));
std::memset(historyMoves, 0, sizeof(historyMoves));
continue;
}