encapsulated history

This commit is contained in:
rektdie committed 2025-04-11 02:49:10 +02:00
1 parent 818b549cba
commit 91ec9282a0
5 files changed
+16 -19

No files matched your search

-3
View File
@@ -71,8 +71,6 @@ void RunBenchmark() {
// Clearing
TT.Clear();
std::memset(killerMoves, 0, sizeof(killerMoves));
history.Clear();
SearchContext ctx;
@@ -86,6 +84,5 @@ void RunBenchmark() {
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
TT.Clear();
std::memset(killerMoves, 0, sizeof(killerMoves));
history.Clear();
positionIndex = 0;
}