X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=60d10b0b70368c5e05250e3fe7f63593048ee2e6;hp=db9e6220fca0574ca8d449023c2212d81de07845;hb=201f924d5364e8151c41fa2840bacc8381450cc5;hpb=a8b9c11f5666a6298d684e21156f4ac9d89c8d8c diff --git a/src/uci.cpp b/src/uci.cpp index db9e6220..60d10b0b 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 { @@ -127,7 +127,7 @@ namespace { { 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 +149,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 +180,7 @@ namespace { return; if (token == "startpos") - RootPosition.from_fen(StartPosition); + RootPosition.from_fen(StartPositionFEN); else if (token == "fen") { string fen; @@ -209,7 +209,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 +300,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) {