X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.cpp;h=505f2ef3831b2632094d65ee86696562dc38e448;hb=32c504076f5a1d5c84f88c2d30a11c25ea2e5a6e;hp=0c94ed892bfc669b6bcf1727c78910b3698a9bd7;hpb=4220f191d8c1d597ff66e41f90af11367b0ebd7f;p=stockfish diff --git a/src/main.cpp b/src/main.cpp index 0c94ed89..505f2ef3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,6 +25,7 @@ #include "position.h" #include "search.h" #include "thread.h" +#include "tt.h" #include "ucioption.h" using namespace std; @@ -35,6 +36,8 @@ extern void kpk_bitbase_init(); int main(int argc, char* argv[]) { + cout << engine_info() << endl; + bitboards_init(); Position::init(); kpk_bitbase_init(); @@ -43,8 +46,6 @@ int main(int argc, char* argv[]) { Eval::init(); TT.set_size(Options["Hash"]); - cout << engine_info() << endl; - if (argc == 1) uci_loop(); @@ -55,6 +56,4 @@ int main(int argc, char* argv[]) { cerr << "\nUsage: stockfish bench [hash size = 128] [threads = 1] " << "[limit = 12] [fen positions file = default] " << "[limited by depth, time, nodes or perft = depth]" << endl; - - Threads.exit(); }