X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=d34fb974bfb2fae2b6f441567ec9ed585c4f02d9;hp=dd0b7ff8a88b0b2c4250105ea10bf93dd3dcb9f4;hb=c014444f09ace05e908909d9c5c60127e998b538;hpb=41641e3b1eea0038ab6984766d2b3bca869be7fa diff --git a/src/main.cpp b/src/main.cpp index dd0b7ff8..d34fb974 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,6 @@ */ #include -#include #include "bitboard.h" #include "evaluate.h" @@ -26,7 +25,8 @@ #include "search.h" #include "thread.h" #include "tt.h" -#include "ucioption.h" +#include "uci.h" +#include "syzygy/tbprobe.h" int main(int argc, char* argv[]) { @@ -37,17 +37,13 @@ int main(int argc, char* argv[]) { Position::init(); Bitbases::init_kpk(); Search::init(); - Pawns::init(); Eval::init(); + Pawns::init(); Threads.init(); + Tablebases::init(Options["SyzygyPath"]); TT.resize(Options["Hash"]); - std::string args; - - for (int i = 1; i < argc; ++i) - args += std::string(argv[i]) + " "; - - UCI::loop(args); + UCI::loop(argc, argv); Threads.exit(); }