RoepStoep / lidraughts

lidraughts.org: the forever free, adless and open source draughts server
https://lidraughts.org
GNU Affero General Public License v3.0
105 stars 12 forks source link

Promoting to king does not mark the piece as king #3

Closed campovski closed 6 years ago

campovski commented 6 years ago

I believe that this happens when you promote after the capturing sequence, although I am only 99% sure that is true.

Here is the screenshot of the game, white has promoted and his last move was king move. Even after move the piece still remained not marked as king.

RoepStoep commented 6 years ago

You're right, it only fails when promoting from a capture. But we're quite lucky you discovered this bug so early, because this only happens when there's at the same time another capture on the board with at least a length of 2, as in your game: https://lidraughts.org/UJbtytFE/black#76

Thanks for reporting!