-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move player check from server to flow * add activePlayers() fn to turn-order * rename activePlayers to actionPlayers * use actionPlayers in canMakeMove * add expectations for actionPlayers * pass object instead of playerID to canMakeMove * make validator and canMakeMove * disallow currentPlayer to make moves by default * call canMakeMove in isActive computation * minor style tweak * pass correct value of G in server/index.js * pass playerID = undefined in singleplayer * arg consistency in canMakeMOve * remove ability to change actionPlayers from TurnOrder. Let's wait for the Events API and figure it out then. * pass entire payload object in server/index.js * fix some comments
- Loading branch information
1 parent
ca60c0a
commit f664237
Showing
6 changed files
with
120 additions
and
35 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
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