X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=1b2fdf9dec5efff93d657b46ff042b31ef516254;hp=920d9481bc3fe0e3b330845330dc75f6570e0c71;hb=9934b8ec31483ceb98c19dfe4fface14fe384b32;hpb=2ef5b4066e649c6ce3b10aa5f1bff7525246646d diff --git a/src/main.cpp b/src/main.cpp index 920d9481..1b2fdf9d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,10 +21,11 @@ #include #include "bitboard.h" -#include "ucioption.h" +#include "evaluate.h" #include "position.h" #include "search.h" #include "thread.h" +#include "ucioption.h" using namespace std; @@ -39,8 +40,14 @@ int main(int argc, char* argv[]) { kpk_bitbase_init(); Search::init(); Threads.init(); + Eval::init(); TT.set_size(Options["Hash"]); + // Don't sync with C library I/O buffers, faster but now using printf() + // or scanf() could yield to issues because buffers are independent. + cout.sync_with_stdio(false); + cin.sync_with_stdio(false); + cout << engine_info() << endl; if (argc == 1)