From: Bogdan B. <fro...@gm...> - 2014-07-27 08:38:18
|
Hi, I was working on a PGN parser using boost::spirit [1], using the standard as a guide. In the standard it says “The alternate move sequence given by an RAV is one that may be legally played by first unplaying the move that appears immediately prior to the RAV. Because the RAV is a recursive construct, it may be nested.” This means that: a) The RAV could appear after either of white’s or black’s moves b) It needs to start with the move that could’ve been played before the one that was played in the main line I’m a little confused by this example: 23. Re1 (23. Rd1! O-O 24. h3) O-O (23. ... Bg4) <= how is black’s variation supposed to look like (not sure of the “23. …” ) So the question is: how are PGN variations supposed to be handled, AND would there be interest to integrate a spirit-based parser into chessx? Thanks, Bogdan [1] https://github.com/bburlacu/PgnParser/ [2] http://www.opensource.apple.com/source/Chess/Chess-105.0.14/Documentation/PGN-Standard.txt |