X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=af8b01f708728b7bc68d92193aa19d7b8b86ff52;hp=60d10b0b70368c5e05250e3fe7f63593048ee2e6;hb=dda53e831d369c5d02ccdebed1a2dcc781fc11c0;hpb=b6ab610e2f3d9148e2a75984800cebc0757b7f01 diff --git a/src/uci.cpp b/src/uci.cpp index 60d10b0b..af8b01f7 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.