aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2021-05-09 18:32:47 +0000
committerGitHub2021-05-09 18:32:47 +0000
commit45dd3cb2efd7d6549b37797c9bf0a2cf879b65c8 (patch)
tree4db14a5f41a0ed0b9eb0c0304eb6c1a9ad9c0b31
parentdf75aa721e89c8c5798fc53e9404413b1ade8106 (diff)
Fix another bugv1.0.0
-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 e7e69ac..816754b 100644
--- a/back/src/Game.ts
+++ b/back/src/Game.ts
@@ -110,11 +110,11 @@ export default class Game {
}
while (this.lastPlayed > 0) { // Phase 2
await this.flip();
- this.lastPlayed--;
if (this.phase === 3 as number) { // Oops, flipped over a red card!
await this.giveup(); // The player who called BS won and now the challenged player must give up a card!
return;
}
+ this.lastPlayed--;
}
this.phase = 3;
await this.giveup(); // The player who called BS won and now they must give up a card!