Fix another bug

This commit is contained in:
Anthony Wang 2021-05-09 18:32:47 +00:00 committed by GitHub
parent df75aa721e
commit 45dd3cb2ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!