jhlywa / chess.js

A TypeScript chess library for chess move generation/validation, piece placement/movement, and check/checkmate/draw detection
BSD 2-Clause "Simplified" License
3.72k stars 892 forks source link

Feature Request: halfMove number in getComments() #457

Open ps2-controller opened 6 months ago

ps2-controller commented 6 months ago

Hi, Right now, the response for getComments() returns {fen: , comment: } --- if there's a two-move repetition within a game, both moves will have the same FEN, making it impossible to determine for which move the comment applies. Is there an easy way to add halfMove Number to the getComments() response, to close this information gap?

Thanks!