bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
229 stars 80 forks source link

Update TimeControl to output "0" before "+" #78

Closed nagelal closed 2 years ago

nagelal commented 2 years ago

There are games where the time controls are "0+2", for example. Currently, TimeControl.java writes this out as "+2", which results in an error when reading the PGN back in. This fixes that issue.