Revert "encapsulated TT"

This reverts commit 8ca878275a.
This commit is contained in:
rektdie committed 2025-04-12 00:52:52 +02:00
1 parent 0242eec87d
commit 43dc63cdf3
6 files changed
+26 -28

No files matched your search

+6
View File
@@ -4,6 +4,7 @@
#include "benchmark.h"
#include "search.h"
#include "stopwatch.h"
#include "tt.h"
using namespace SEARCH;
@@ -65,8 +66,12 @@ void RunBenchmark() {
int depth = BENCH_DEPTH;
int ply = 0;
// Clearing
TT.Clear();
SearchContext ctx;
Stopwatch sw;
for (int i = 0; i < fenPositions.size(); i++) {
board.SetByFen(fenPositions[i]);
@@ -74,4 +79,5 @@ void RunBenchmark() {
}
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
TT.Clear();
}