mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user