alexobviously / bishop

A chess logic package for Dart with flexible variant support
https://pub.dev/packages/bishop
Other
19 stars 8 forks source link

BUG crazyhouse: After taking the converted pawn, a pawn should be in hand. #13

Closed malaschitz closed 1 year ago

malaschitz commented 1 year ago

After taking the converted pawn, a pawn should be in hand. In test https://github.com/malaschitz/bishop/blob/master/test/crazy_test.dart The knight takes the queen on h8. A pawn should be added to the hand but the knight is added.

malaschitz commented 1 year ago

It solved (at least for Crazyhouse) in https://github.com/malaschitz/bishop/commit/6bcce6a0b9d108dedb4dc7ab2fc78140710f31d5

alexobviously commented 1 year ago

Fixed in https://github.com/alexobviously/bishop/commit/34bb7c026ddbcccbe3e921e1f21301e4649c2828