aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2021-05-08 22:12:38 -0500
committerAnthony Wang2021-05-08 22:12:38 -0500
commitcb24f26534bb09730b21087115ea257715e52ee3 (patch)
tree6c33525d4661bdd134f94d59f89e2eaa59c6d497
parente5c942c941ba648e70aa4143fda79768499db14a (diff)
Fix a minor bugv0.3-beta
-rw-r--r--back/src/Game.ts2
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();