this.judging_start_time_ms = 0;
this.equivalencies = {};
- this.broadcast_event_object('game-state', this.state);
+ this.broadcast_event('game-state', this.game_state_json());
}
add_prompt(items, prompt_string) {
group.players.forEach(p => p.round_score += group.players.size);
}
- const scores = this.players.map(p => {
+ const scores = this.players.filter(p => p.active).map(p => {
return {
player: p.name,
score: p.round_score
/* If every registered player has answered, then there's no need to
* wait for anything else. */
- if (game.state.players_answered.length >= game.players.length)
+ if (game.state.players_answered.length >= game.active_players)
game.perform_judging();
});