while that is true, the following is also true. The following snippets are all legal and identical, except that a character string match will fail:
8/4n3/...
8/22n3/...
8/1111n111/...
etc.
The idea is to provide something like SAN, which is pretty well defined, to produce the shortest (but consistent) move representation,
rather than the ugly long algebraic stuff like e2e4 and such.
..but i like my coordinate notation.
An EP target when no EP is possible makes little sense to me.
Yes, agreed. I don't like the idea of a EP target move in a FEN. Rather it should be a special character within the FEN to determine if the advanced pawn is able to en passant.
* astricks look like a simple solution to all the problems.
without the astrisk there would be no EP move possible.
Just add a check for '*' in your FEN reader/writer and you'd be fine.
Just add '*' if last side to move was a pawn move advanced 2 spaces, passing any enemy pawns left/right. This doesn't have to be anything different then say a check (+) symbol would be done after a move. Like in displaying the PV lines...
example:
rnbqkbnr/p1p1pppp/1p6/3pP3/8/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 3
would be written:
rnbqkbnr/p1p1pppp/1p6/3pP*3/8/8/PPPP1PPP/RNBQKBNR w KQkq 0 3
This would tell the chess program that e5* has the opportunity to en passant on the next move, so make sure to look for en passant in your search.
Pretty simple.