PA2 Cannot undo first move #33
-
Hi I have read #29 but still I am a bit confused. The situation is that the gameboard cannot undo after making the first move and it shows the index is out of bound. However I have a move already. Is it because my implementation or is there any error in MoveStack? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry for the mistake in the design of the requirement, in the original requirement, the TODO part is |
Beta Was this translation helpful? Give feedback.
Sorry for the mistake in the design of the requirement, in the original requirement, the TODO part is
Perform undo on the game controller and trigger the move event with the latest move result after undo.
And we found that is is not possible to do that when undoing the first move given the reference implementation of PA1. So we decided to change the TODO part toPerform undo on the game controller and trigger the move event with the move *that was just undone*.