Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): Fix undo/redo if the move changed the stage (#701)
* Fix for null last move if changed the stage * Added reducer test with using stages * ESlint fixes and test logic fixes * Fixed playerID in reducer undo/redo test * feat(core): Mark numPlayers as optional in InitializeGame * test(core): Convert reducer tests to TS & break up undo/redo tests * test(core): Fix makeMove call in undo/redo test * test(core): Improve test labelling * feat(core): Move undo/redo stack update after event processing * test(core): Remove unnecessary seed in test setup * fix(core): Lookup undoable move from restore state not last state * fix(core): Use playerID instead of currentPlayer in undoable move lookup * test(core): Add low-level tests for undo/redo stacks * feat(core): Don’t add move to update stack if turn was ended Co-authored-by: delucis <swithinbank@gmail.com>
- Loading branch information