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 -2
View File
@@ -2,15 +2,20 @@
#include "movegen.h"
#include "uci.h"
#include "tt.h"
#include "benchmark.h"
int main() {
int main(int argc, char* argv[]) {
initLeaperAttacks();
initSliderAttacks();
InitZobrist();
Board board;
UCILoop(board);
if (std::string(argv[1]) == "bench") {
RunBenchmark();
} else {
UCILoop(board);
}
return 0;
}