]> git.sesse.net Git - stockfish/blobdiff - src/main.cpp
Introduce ratio operation
[stockfish] / src / main.cpp
index 98f6f3875fd613ea10b0d769444fc2291c19d6e1..528e6091c50eefa51c341bd0fe12e87eddfa8b51 100644 (file)
@@ -18,7 +18,6 @@
 */
 
 #include <iostream>
-#include <string>
 
 #include "bitboard.h"
 #include "evaluate.h"
 #include "search.h"
 #include "thread.h"
 #include "tt.h"
-#include "ucioption.h"
+#include "uci.h"
+
+#ifdef SYZYGY
+#include "syzygy/tbprobe.h"
+#endif
 
 int main(int argc, char* argv[]) {
 
@@ -37,17 +40,15 @@ int main(int argc, char* argv[]) {
   Position::init();
   Bitbases::init_kpk();
   Search::init();
-  Pawns::init();
   Eval::init();
+  Pawns::init();
   Threads.init();
-  TT.set_size(Options["Hash"]);
-
-  std::string args;
-
-  for (int i = 1; i < argc; ++i)
-      args += std::string(argv[i]) + " ";
+  TT.resize(Options["Hash"]);
+#ifdef SYZYGY
+  Tablebases::init(Options["SyzygyPath"]);
+#endif
 
-  UCI::loop(args);
+  UCI::loop(argc, argv);
 
   Threads.exit();
 }