pioz / chess

A fast chess library that use bitboards to play chess with Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When loading a FEN where the board is in Checkmate, the status is :in_progress

alexggordon opened this issue · comments

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!

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?

@pioz Awesome. Sorry for the slow response! Should be all set!