pioz / chess

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

Pawn cannot turn into a queen #10

Closed juaorteg closed 9 years ago

juaorteg commented 9 years ago

Hello,

I ran into an issue while playing. The Chess::IllegalMoveError is raised when the pawn tries to go to the end of the board and become a queen.

juaorteg commented 9 years ago

Sorry, I wasn't aware the rook can become a queen/knight/rook/bishop. Adding a "Q" after the move works. The default is usually queen in chess games.

pioz commented 9 years ago

Ok, I can add this feature in the next days... thank you for your suggestion...

pioz commented 9 years ago

If no promotion char is passed use 'q' as default in version 0.0.9