Closed Antaniserse closed 9 years ago
Hi Antaniserse,
I think you are right. The only thing I might have been thinking here is that as long as the move is unambiguous (single piece on a file) you could leave out the piece letter. E.g an empty c file and then ...20. Bc3 Kf3xd4 21. cxd4 (Bishop takes Knight) ...
But the spec is actually pretty clear about this.
8.2.3.3: Basic SAN move construction
A basic SAN move is given by listing the moving piece letter (omitted for pawns) followed by the destination square. [...]
http://www.saremba.de/chessgml/standards/pgn/pgn-complete.htm#c8.2.3
I'm gonna fix this.
Hello, Unless i'm doing something wrong, it seems that, when the current move is a pawn move, the value of Move.Piece is handled differently whether the move is simple or is a capture.
Simple move:
Move.Piece == PieceType.Pawn
Capture:Move.Piece == nil
Is this intended?
Sample PGN