Bug in PGN?

Sort:
waltertamboer

I have a game where a knight is placed on B8 and a knight is placed on E7, now the move in PGN says Nc6, how do I know which knight was moved? Shouldn't the PGN say "Nbc6" or something?

MGleason

Is one of the knights pinned?

skelos

That is one of the annoyances of PGN: to be strictly correct generating it or parsing it you need to not only record the board state, but have a move generator and legality checker.

If one of the knights is not pinned, there is an error, but e7 in front of an uncastled king would be likely for a pin.

If you want a check, post the PGN.

waltertamboer

Yeah you guys are right, one of the knights was pinned! Oh man.. parsing PGN is hard happy.png

Problem solved, thanks happy.png

skelos

Yes, that little wrinkle means quite a lot of work.

If you want worse, look at the UCI interface "specification". Don't eat lunch first.

MGleason

lol yeah. grin.png