Retire square_from_string()

And rename move_from/to_string() in a more specific
move_from/to_uci() that is a simple coordinate notation.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-12-09 12:10:02 +01:00
parent 556b63b6b6
commit 56de5ae561
5 changed files with 34 additions and 38 deletions

View File

@@ -194,7 +194,7 @@ namespace {
StateInfo st;
while (uip >> token)
{
move = move_from_string(pos, token);
move = move_from_uci(pos, token);
pos.do_move(move, st);
if (pos.rule_50_counter() == 0)
pos.reset_game_ply();
@@ -293,7 +293,7 @@ namespace {
{
int numOfMoves = 0;
while (uip >> token)
searchMoves[numOfMoves++] = move_from_string(pos, token);
searchMoves[numOfMoves++] = move_from_uci(pos, token);
searchMoves[numOfMoves] = MOVE_NONE;
}