-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increment current player at start of phase in TurnOrder.DEFAULT (#521)
* feat(core): Increment currentPlayer in TurnOrder.DEFAULT.first Increments the current player at the start of phases when using TurnOrder.DEFAULT (which currently maintains the player across phase changes). Includes a check so that the player is NOT incremented at the start of a game. BREAKING CHANGE: The current player is now incremented at the start of a new phase. Previously the current player was unchanged when a phase ended. * test(core): Fix TurnOrder.DEFAULT test for new behaviour * test(core): Fix flow tests for new default turn order * feat(core): Add TurnOrder.CONTINUE to provide legacy behaviour This implements the previous TurnOrder.DEFAULT for those who need this less common pattern. * test(core): Add test for TurnOrder.CONTINUE * docs: Document TurnOrder.CONTINUE
- Loading branch information
1 parent
ca64543
commit ad08b8a
Showing
4 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters