mdallastella / clj-pgn

A simple Portable Notation Game parse library.
Eclipse Public License 1.0
5 stars 1 forks source link

Allow move numbers for black in bnf grammar #3

Closed noonian closed 4 years ago

noonian commented 4 years ago

All chess.com PGN files contain move numbers for black

Since chess.com annotates each move with the clock time in a comment, every move by black includes a move number. With this change the following code works (i/parse pgn-grammar "1. e4 {[%clk 0:05:04.9]} 1... e5" :start :MOVE)

I doubt this breaks anything but I haven't tested PGNs other than a few of my own games exported from chess.com. Thanks for the library!

mdallastella commented 4 years ago

Thanks for your contribution, @noonian!