int main(int argc, char* argv[]) {
- // Disable IO buffering for C and C++ standard libraries
- setvbuf(stdin, NULL, _IONBF, 0);
+ // Disable output buffering: printf() does not work correctly otherwise
setvbuf(stdout, NULL, _IONBF, 0);
- cout.rdbuf()->pubsetbuf(NULL, 0);
- cin.rdbuf()->pubsetbuf(NULL, 0);
- // Startup initializations
- init_bitboards();
+ bitboards_init();
Position::init();
kpk_bitbase_init();
Search::init();
uci_loop(); // Enter the UCI loop and wait for user input
}
- else if (string(argv[1]) == "bench" && argc < 8)
+ else if (string(argv[1]) == "bench")
benchmark(argc, argv);
else