removed global ply and added it as parameter | bench 1143648

This commit is contained in:
rektdie committed 2025-03-17 21:01:24 +01:00
1 parent 3ff1df03d7
commit 90cac3d3f9
3 files changed
+22 -28

No files matched your search

+2 -1
View File
@@ -61,6 +61,7 @@ const std::array<std::string, 50> fenPositions = {
void RunBenchmark() {
Board board;
int depth = 5;
int ply = 0;
benchStarted = true;
searchStopped = false;
@@ -74,7 +75,7 @@ void RunBenchmark() {
Stopwatch sw;
for (int i = 0; i < fenPositions.size(); i++) {
board.SetByFen(fenPositions[i].c_str());
PVS(board, depth, -50000, 50000);
PVS(board, depth, -inf, inf, ply);
}
std::cout << nodes << " nodes " << int(nodes/sw.GetElapsedSec()) << " nps\n";