notnil / chess

chess package for go
MIT License
508 stars 126 forks source link

Scanner: fix parsing of PGNs w/ starting position #128

Open mikeb26 opened 1 year ago

mikeb26 commented 1 year ago

PGNs can encode games starting from a specific position rather than the normal starting position. Currently, Scanner will not parse these correctly because it matches move lists only on lines beginning with "1. ". This commit fixes this.