return JSON.stringify({
id: this.id,
name: this.name,
- team: this.team.name
+ team: this.team.name,
+ score: this.score
});
}
}
/* 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 => {