]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
(Re)introduce DEPTH_ZERO to replace Depth(0)
[stockfish] / src / uci.cpp
index 60d10b0b70368c5e05250e3fe7f63593048ee2e6..9fd35e97f0606f4d27ee1110bb832ddbd44ebb75 100644 (file)
@@ -126,7 +126,6 @@ namespace {
     else if (token == "ucinewgame")
     {
         push_button("New Game");
-        Position::init_piece_square_tables();
         RootPosition.from_fen(StartPositionFEN);
     }
     else if (token == "isready")
@@ -207,6 +206,8 @@ namespace {
                 RootPosition.do_move(move, st);
                 if (RootPosition.rule_50_counter() == 0)
                     RootPosition.reset_game_ply();
+
+                RootPosition.inc_startpos_ply_counter(); //FIXME: make from_fen to support this and rule50
             }
             // Our StateInfo st is about going out of scope so copy
             // its content inside RootPosition before it disappears.
@@ -315,7 +316,7 @@ namespace {
 
     tm = get_system_time();
 
-    n = perft(pos, depth * OnePly);
+    n = perft(pos, depth * ONE_PLY);
 
     tm = get_system_time() - tm;
     std::cout << "\nNodes " << n