When quickly clicking the redo button in the chess activities, it is possible for a single captured piece to be listed as being captured twice.
Steps to reproduce:
- Start the activity named "Play chess against your friend"
- Click the button that toggles displaying the captured pieces
- Play a sequence of moves in which a single piece is captured near the beginning of the sequence
- Undo all those moves
- Redo all those moves by quickly clicking the redo button
Expected behavior:
There is exactly one piece shown as being captured. See the following image for an example. In particular, there are 7 black pawns on the board and 1 black pawn displayed as captured.
Actual behavior:
There is more than one piece shown as being captured. See the following image for an example. In particular, there are 7 black pawns on the board and 2 black pawns displayed as captured. That is a total of 9 black pawns, which is impossible. Furthermore, this image is identical to the previous image except there is an additional black pawn displayed as captured.