X-Git-Url: https://git.cworth.org/git?p=lmno-server;a=blobdiff_plain;f=game.js;h=86a0e70b96f311dc2133898e679c1afa619406a7;hp=eb1ba807c3e1d9ec5a0e9eda65fceafaff052338;hb=02c84b85c58b60f48bb0baf37cacdd037e84d28d;hpb=2b198e296f7a247156d554631896cb04e1ca1251 diff --git a/game.js b/game.js index eb1ba80..86a0e70 100644 --- a/game.js +++ b/game.js @@ -36,7 +36,8 @@ class Player { return JSON.stringify({ id: this.id, name: this.name, - team: this.team.name + team: this.team.name, + score: this.score }); } } @@ -184,7 +185,7 @@ class Game { /* After adding the player to the list, and if we are already past * the first move, assign this player to the first team that - * doesn't already have a player aissgned (if any). */ + * doesn't already have a player assigned (if any). */ if (! this.first_move) { const have_players = Array(this.teams.length).fill(false); this.players.forEach(p => {