24 lines
424 B
C++
24 lines
424 B
C++
#include "board.h"
|
|
#include "movegen.h"
|
|
#include "uci.h"
|
|
#include "utils.h"
|
|
#include "benchmark.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
MOVEGEN::initLeaperAttacks();
|
|
MOVEGEN::initSliderAttacks();
|
|
UTILS::InitZobrist();
|
|
|
|
Board board;
|
|
|
|
if (argc > 1) {
|
|
if (std::string(argv[1]) == "bench") {
|
|
RunBenchmark();
|
|
}
|
|
} else {
|
|
UCILoop(board);
|
|
}
|
|
|
|
return 0;
|
|
}
|