Final UCI helpers renaming

To reflect new changes, specifically that
now are all under UCI namespace.

No functional change.
This commit is contained in:
Marco Costalba
2014-10-26 07:41:25 +01:00
committed by Joona Kiiski
parent aa60c80ade
commit 2469daebb1
5 changed files with 31 additions and 27 deletions

View File

@@ -167,7 +167,7 @@ uint64_t Search::perft(Position& pos, Depth depth) {
pos.undo_move(*it);
}
if (Root)
sync_cout << UCI::move_to_uci(*it, pos.is_chess960()) << ": " << cnt << sync_endl;
sync_cout << UCI::format_move(*it, pos.is_chess960()) << ": " << cnt << sync_endl;
}
return nodes;
}
@@ -191,7 +191,7 @@ void Search::think() {
{
RootMoves.push_back(MOVE_NONE);
sync_cout << "info depth 0 score "
<< UCI::score_to_uci(RootPos.checkers() ? -VALUE_MATE : VALUE_DRAW)
<< UCI::format_value(RootPos.checkers() ? -VALUE_MATE : VALUE_DRAW)
<< sync_endl;
goto finalize;
@@ -226,8 +226,8 @@ finalize:
}
// Best move could be MOVE_NONE when searching on a stalemate position
sync_cout << "bestmove " << UCI::move_to_uci(RootMoves[0].pv[0], RootPos.is_chess960())
<< " ponder " << UCI::move_to_uci(RootMoves[0].pv[1], RootPos.is_chess960())
sync_cout << "bestmove " << UCI::format_move(RootMoves[0].pv[0], RootPos.is_chess960())
<< " ponder " << UCI::format_move(RootMoves[0].pv[1], RootPos.is_chess960())
<< sync_endl;
}
@@ -694,7 +694,7 @@ moves_loop: // When in check and at SpNode search starts from here
if (thisThread == Threads.main() && Time::now() - SearchTime > 3000)
sync_cout << "info depth " << depth
<< " currmove " << UCI::move_to_uci(move, pos.is_chess960())
<< " currmove " << UCI::format_move(move, pos.is_chess960())
<< " currmovenumber " << moveCount + PVIdx << sync_endl;
}
@@ -1326,7 +1326,7 @@ moves_loop: // When in check and at SpNode search starts from here
ss << "info depth " << d
<< " seldepth " << selDepth
<< " score " << (i == PVIdx ? UCI::score_to_uci(v, alpha, beta) : UCI::score_to_uci(v))
<< " score " << (i == PVIdx ? UCI::format_value(v, alpha, beta) : UCI::format_value(v))
<< " nodes " << pos.nodes_searched()
<< " nps " << pos.nodes_searched() * 1000 / elapsed
<< " time " << elapsed
@@ -1334,7 +1334,7 @@ moves_loop: // When in check and at SpNode search starts from here
<< " pv";
for (size_t j = 0; RootMoves[i].pv[j] != MOVE_NONE; ++j)
ss << " " << UCI::move_to_uci(RootMoves[i].pv[j], pos.is_chess960());
ss << " " << UCI::format_move(RootMoves[i].pv[j], pos.is_chess960());
}
return ss.str();