Chess game cannot continue after castling
Closed, ResolvedPublic

Description

Castling in chess is not working correctly in https://gcompris.net/download/qt/linux/beta/gcompris-qt-1.0-beta-Linux64.sh, the prerelease for version 1.0. It works correctly in version 0.81.

After castling, the game allows no more moves (though it is possible undo...kind of).

Steps to reproduce:

  1. White: E2 -> E3
  2. Black: A7 -> A6
  3. W: G1 -> G3
  4. B: B7 -> B6
  5. W: F1 -> E2
  6. B: C7 -> C6
  7. Click on the white king on E1

So far, so good.

  1. Click on G1

Expected behavior:

The white king moves to G2, the white rook on H1 moves to F1, no pieces are listed as being captured, no squares are highlighted, and the text at the top of the screen says "Black's turn".

Actual behavior:

The king does move to G1. However, the white rook on H1 disappeared, there are two white rooks in the list of white pieces that black has captured, F1 and G1 are still highlighted, and the text at the top of the screen says "White's turn".

Clicking on the white king on G2 causes it to move one square to the left and one square below A1.

At this point, it is not possible to move any piece. Clicking the undo button mostly gives the expected behavior though. The only issue is that there is still one white rook listed as having been captured by black (even though white still has all 16 of its original pieces on the board).

Steps 7, 8, and clicking undo can be repeated now. Each time they are repeated, another white root is listed as having been captured by black.

tysonwilliams updated the task description. (Show Details)
tysonwilliams updated the task description. (Show Details)
tysonwilliams updated the task description. (Show Details)
tysonwilliams updated the task description. (Show Details)

Works great now. Good job!

tysonwilliams closed this task as Resolved.Sep 21 2020, 3:34 AM
tysonwilliams claimed this task.

I am changing the status to "Resolved". I hope that is what you want and is ok for me to do.

jjazeix moved this task from Backlog to Done on the GCompris: Bugs board.Sep 21 2020, 6:20 AM

I am changing the status to "Resolved". I hope that is what you want and is ok for me to do.

Yes, this is perfect, thank you for testing