From cb24f26534bb09730b21087115ea257715e52ee3 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 8 May 2021 22:12:38 -0500 Subject: Fix a minor bug --- back/src/Game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/src/Game.ts b/back/src/Game.ts index 61bbdf9..d056210 100644 --- a/back/src/Game.ts +++ b/back/src/Game.ts @@ -95,6 +95,7 @@ export default class Game { 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) { @@ -129,7 +130,6 @@ export default class Game { (() => { p.stack = stack; p.cards = [...stack]; - p.flipped = []; return; })(); resolve(); -- cgit v1.2.3-70-g09d2