-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setActivePlayers mode that allows cycling through players in order #478
Comments
this is very interesting. I assume that this mode will cycle through the players in the play order, with the first player being whoever is next of the current player? I have modeled something similar in a MTG implementation, where the next opponent enter the stage In my scenario, an opponent can make a move (cast a spell) that would reset the cycling through the other players (including the |
Yes, that's the idea. Your use-case describes the intention of this change almost exactly. |
How would you keep track of the edit: just realized that there are properties on the stage that is not displayed in debug after the call to |
@pardahlman Yes, there are already some fields that track past/future state when using the A way to get something like this using ctx.events.setActivePlayers({
value: { '0': 'play' },
next: {
value: { '1': 'play' },
next: {
value: { '2': 'play' },
next: {
// cycle done, reset to current state
value: { ...ctx.activePlayers },
},
},
},
}) When the player uses You might still have to keep track of some state in @nicolodavis Now that I’m looking at it, maybe it would be a nicer syntax if |
Right now we allow adding "all" players or "other" players to the set of active players (and they can make moves in any order). However, you might also want them to be able to perform actions one after the other (all inside the same turn).
The text was updated successfully, but these errors were encountered: