added command 'bench'
This commit is contained in:
1 parent
81c52f05e3
commit
c1e048c0c6
6 files changed
+119
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user