encapsulated killerMoves and changed it to std::array

This commit is contained in:
rektdie committed 2025-04-11 03:59:05 +02:00
1 parent ac7325f295
commit dd6f0b94f5
5 files changed
+9 -12

No files matched your search

-2
View File
@@ -69,7 +69,6 @@ void RunBenchmark() {
// Clearing
TT.Clear();
std::memset(killerMoves, 0, sizeof(killerMoves));
SearchContext ctx;
@@ -82,6 +81,5 @@ void RunBenchmark() {
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
TT.Clear();
std::memset(killerMoves, 0, sizeof(killerMoves));
positionIndex = 0;
}