Skip to content

Conversation

@Xylenox
Copy link
Collaborator

@Xylenox Xylenox commented Apr 25, 2025

just non-lady of the lake logic for now

const assassin = state.players.filter(
(player) => state.roles[player] == "assassin",
)[0];
const target = responses.get(assassin);
Copy link
Collaborator Author

@Xylenox Xylenox Apr 25, 2025

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,
Copy link
Collaborator Author

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 {
Copy link
Collaborator Author

@Xylenox Xylenox Apr 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants