notnil / chess

chess package for go
MIT License
517 stars 130 forks source link

Handle unstarted games #80

Closed salmanjnr closed 2 years ago

salmanjnr commented 3 years ago

There was a bug in scanning games that haven't started yet. The scanner checked for move section by checking if its prefixed with "1. ". This condition is not satisfied for games with no moves yet.

sumnerevans commented 2 years ago

Should be fixed by: https://github.com/notnil/chess/pull/86

notnil commented 2 years ago

@salman69e27 thanks for finding this and it was handled as a byproduct of #86. I just added a dedicated test as well from one of your given PGNs.