One good, the other silly.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
toRank = rank_from_char(c);
state = (i < movestr.length() - 1) ? PROMOTION_OR_CHECK : END;
}
toRank = rank_from_char(c);
state = (i < movestr.length() - 1) ? PROMOTION_OR_CHECK : END;
}
- else if (state == TO_FILE && fromRank == FILE_NONE)
+ else if (state == TO_FILE && fromRank == RANK_NONE)
{
// It's a disambiguation rank instead of a file
fromRank = rank_from_char(c);
{
// It's a disambiguation rank instead of a file
fromRank = rank_from_char(c);
return MOVE_NONE;
// Look for a matching move
return MOVE_NONE;
// Look for a matching move
+ Move m, move = MOVE_NONE;
to = make_square(toFile, toRank);
int matches = 0;
to = make_square(toFile, toRank);
int matches = 0;