Skip to content

Commit

Permalink
Be forgiving on missing '=' in promotion move
Browse files Browse the repository at this point in the history
  • Loading branch information
mcostalba committed Nov 5, 2016
1 parent 6261125 commit 8d0de0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parser/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,9 @@ bool Position::move_is_san(Move m, const char* ref) const {

if (type_of(m) == PROMOTION)
{
*san++ = '=';
if (Strict) // Sometime promotion move misses the '='
*san++ = '=';

*san++ = PieceToChar[make_piece(WHITE, promotion_type(m))];
}
}
Expand Down

0 comments on commit 8d0de0e

Please sign in to comment.