-
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.
refactor: Change moveLimit syntax in setActivePlayers (#481)
* feat: Set active player move limits with long-form syntax Implements `player: { stage, moveLimit }` instead of `player: stage, moveLimit: { player: limit }`. * refactor: Standardise application of active player arguments * feat: Reimplement shorthand moveLimit syntax Allows `setActivePlayers({ moveLimit })` to set limit for all active players. * test: Update active player move limit syntax in tests * test: Add edge-case tests, bringing coverage to 100% * test: Remove unneeded test set-up * test: Simplify undefined stage test * refactor: Mutate state directly with `ApplyActivePlayerArgument` * refactor: Test stage arg is `Stage.NULL` instead of `null`
- Loading branch information
1 parent
64971ee
commit 6762219
Showing
2 changed files
with
95 additions
and
41 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