oers / reversatile

Reversatile: Reversi for Android
GNU General Public License v3.0
19 stars 6 forks source link

Cannot replay after undo then rotate #68

Open Insti opened 5 years ago

Insti commented 5 years ago

Play a full game. Rewind to the start. Redo the moves - everything works. Rewind to the start. Rotate the board. Redo the moves - Nothing happens.

Expected behavior: The game replays the rotated moves.

oers commented 5 years ago

To make this work rotate should be implemented in the c code, so that the redo stack can be rotate as well.

Insti commented 5 years ago

Or the rotate should be implemented entirely in the view so that the c code doesn't need to care about it at all.

oers commented 5 years ago

The way I implemented undo is: