When loading a FEN where the board is in Checkmate, the status is :in_progress
alexggordon opened this issue · comments
Alex Gordon commented
Title pretty much sums it up. I believe the expected status should be :color_won, not :in_progress. Test code below.
require 'chess'
g = Chess::Game.load_fen('rnb1kbnr/pppp1ppp/4p3/8/5PPq/8/PPPPP2P/RNBQKBNR w KQkq - 1 3')
g.status
=> :in_progress
Thanks!
Enrico commented
Thanks to report this issue. I've fix the problem with the version 0.0.5. Can you check on master if the problem is really fixed?
Enrico commented
Alex Gordon commented
@pioz Awesome. Sorry for the slow response! Should be all set!