aboutsummaryrefslogtreecommitdiff
path: root/back
diff options
context:
space:
mode:
authorAnthony Wang2021-05-09 15:42:28 -0500
committerAnthony Wang2021-05-09 15:42:28 -0500
commit6306da1abd7a614b2cca9a541f1e59c4f0e678e3 (patch)
treed44a3732ca7437744b20264fb74e67ae9e19220f /back
parent203f24bd9c2dfae66bd6fded41f25ca59ee7223a (diff)
parent40115b714df43d51073ba20c7292aed3f75dcb14 (diff)
Merge branch 'main' of https://github.com/Ta180m/BSXv1.0.1
Diffstat (limited to 'back')
-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 d054fd7..9434226 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!