X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuci.cpp;h=5a9bfb61227c827eb991270643ab33dc8fd9845a;hb=02882dfe81eae37ce09ce9af95864cf9fad49bbe;hp=db9e6220fca0574ca8d449023c2212d81de07845;hpb=a8b9c11f5666a6298d684e21156f4ac9d89c8d8c;p=stockfish diff --git a/src/uci.cpp b/src/uci.cpp index db9e6220..5a9bfb61 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -79,7 +79,7 @@ namespace { void uci_main_loop() { - RootPosition.from_fen(StartPosition); + RootPosition.from_fen(StartPositionFEN); string command; do { @@ -126,8 +126,7 @@ namespace { else if (token == "ucinewgame") { push_button("New Game"); - Position::init_piece_square_tables(); - RootPosition.from_fen(StartPosition); + RootPosition.from_fen(StartPositionFEN); } else if (token == "isready") cout << "readyok" << endl; @@ -149,9 +148,9 @@ namespace { else if (token == "eval") { EvalInfo ei; - cout << "Incremental mg: " << mg_value(RootPosition.value()) + cout << "Incremental mg: " << mg_value(RootPosition.value()) << "\nIncremental eg: " << eg_value(RootPosition.value()) - << "\nFull eval: " << evaluate(RootPosition, ei) << endl; + << "\nFull eval: " << evaluate(RootPosition, ei) << endl; } else if (token == "key") cout << "key: " << hex << RootPosition.get_key() @@ -180,7 +179,7 @@ namespace { return; if (token == "startpos") - RootPosition.from_fen(StartPosition); + RootPosition.from_fen(StartPositionFEN); else if (token == "fen") { string fen; @@ -209,7 +208,7 @@ namespace { RootPosition.reset_game_ply(); } // Our StateInfo st is about going out of scope so copy - // its content inside RootPosition before they disappear. + // its content inside RootPosition before it disappears. RootPosition.detach(); } } @@ -300,8 +299,8 @@ namespace { assert(RootPosition.is_ok()); - return think(RootPosition, infinite, ponder, RootPosition.side_to_move(), - time, inc, movesToGo, depth, nodes, moveTime, searchMoves); + return think(RootPosition, infinite, ponder, time, inc, movesToGo, + depth, nodes, moveTime, searchMoves); } void perft(UCIInputParser& uip) {