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