added command 'bench'

This commit is contained in:
rektdie committed 2024-10-15 01:26:44 +02:00
1 parent 81c52f05e3
commit c1e048c0c6
6 files changed
+119 -18

No files matched your search

+7
View File
@@ -6,6 +6,7 @@
#include "types.h"
#include "movegen.h"
#include "search.h"
#include "benchmark.h"
Move ParseMove(Board &board, const char* moveString) {
GenerateMoves(board, board.sideToMove);
@@ -241,5 +242,11 @@ void UCILoop(Board &board) {
std::cout << "uciok\n";
continue;
}
// Handling non-UCI "bench" command
if (input.find("bench") != std::string::npos) {
RunBenchmark();
continue;
}
}
}