From 02964186a8886380fe95e1e8d328213534d4ad36 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 9 May 2021 13:17:24 -0500 Subject: [PATCH] Fix a minor bug --- back/src/Game.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back/src/Game.ts b/back/src/Game.ts index d056210..e7e69ac 100644 --- a/back/src/Game.ts +++ b/back/src/Game.ts @@ -92,10 +92,11 @@ export default class Game { } async round() { this.phase = 0; + this.players.forEach((p: Player) => { p.stack = []; }); + this.players.forEach((p: Player) => { p.flipped = []; }); await this.prepare(); // Phase 0 this.phase = 1; this.lastPlayed = 0; - this.players.forEach((p: Player) => { p.flipped = []; }); while (true) { // Phase 1 const p = this.players[this.playerTurn]; if (p.rank || p.disconnected) {