X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=empathy.js;h=11539d854a4473c38be1b7a8373f903986bef7f5;hb=9fb6009a9666b92b18436975409d3717128ec9ba;hp=3ec4a7b74d3dda75f237e1a0a944b7edcc5010dd;hpb=162a37c567f8f2839a4968a784d4583b2e9d5e49;p=lmno-server diff --git a/empathy.js b/empathy.js index 3ec4a7b..11539d8 100644 --- a/empathy.js +++ b/empathy.js @@ -7,7 +7,8 @@ class Empathy extends Game { this.state = { prompts: [], active_prompt: null, - players_answered: 0 + players_answered: 0, + scores: null }; this.answers = []; this.next_prompt_id = 1; @@ -16,6 +17,8 @@ class Empathy extends Game { reset() { this.state.active_prompt = null; this.state.players_answered = 0; + this.state.scores = null; + this.answers = []; this.broadcast_event_object('game-state', this.state);