-
Notifications
You must be signed in to change notification settings - Fork 0
add game logic #18
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
base: rewrite
Are you sure you want to change the base?
add game logic #18
Conversation
| const assassin = state.players.filter( | ||
| (player) => state.roles[player] == "assassin", | ||
| )[0]; | ||
| const target = responses.get(assassin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to store assassination and target information for game over
| ...state, | ||
| phase: "round:team_vote", | ||
| currentTeam: responses.get(this.getTargetPlayers(state)[0]) ?? [], | ||
| currentTeam: team, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
store past teams/team proposals?
| getTargetPlayers(state): UserId[] { | ||
| return state.players; | ||
| }, | ||
| processInteraction(state, responses): GameState { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def need to store player votes for non-anonymous voting
just non-lady of the lake logic for now