X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuci.cpp;h=9fd35e97f0606f4d27ee1110bb832ddbd44ebb75;hb=80bee85d5f48cc1e06f16236a73c86a14c1d0756;hp=60d10b0b70368c5e05250e3fe7f63593048ee2e6;hpb=b6ab610e2f3d9148e2a75984800cebc0757b7f01;p=stockfish diff --git a/src/uci.cpp b/src/uci.cpp index 60d10b0b..9fd35e97 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -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