notnil / chess

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

Added move with comments logic #130

Open esdudnik opened 11 months ago

esdudnik commented 11 months 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!