diff options
-rw-r--r-- | back/src/Game.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |