mgrider / thrive-bga-project

To track changes on the implementation of Thrive for BoardGameArena.com (BGA).
Other
1 stars 0 forks source link

Implement undo. #13

Closed jmichaelward closed 3 years ago

jmichaelward commented 3 years ago

This PR adds support for undo to the Thrive game. We had to re-work/set aside a couple of issues for the time being to get this to work properly. Notably, the following was changed:

  1. Added new states for player start turn and player confirm turn.
  2. Re-indexed player pieces starting at 1 during new game setup to resolve weird reindexing issues that occurred when undo was triggered.
  3. Temporarily disabled the 'rotated' style because player pieces for player 2 were showing up outside of the game board after undo. This will need to be readdressed in #2.
  4. Removed the foreign key constraint on the peg table because undo didn't like it.