pioz / chess

A fast chess library that use bitboards to play chess with Ruby
GNU Lesser General Public License v3.0
59 stars 17 forks source link

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

Closed alexggordon closed 9 years ago

alexggordon commented 9 years ago

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!

pioz commented 9 years ago

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 commented 9 years ago

@alexggordon

alexggordon commented 9 years ago

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