notnil / chess

chess package for go
MIT License
521 stars 133 forks source link

Added move with comments logic #130

Open esdudnik opened 1 year ago

esdudnik commented 1 year ago

Hello! I've needed an ability to add comments per Move. I've added a new method MoveWithComments that is actually does everything that was done by Move and adds a new entry to Game.Comments. The Move calls now the MoveWithComments with an empty comment. In the decodePGN I've change the call for Move to MoveWithComments. Thanks a lot for a great library!