From a13b6f46a00e3f0e34a1d95a87492cb5da539e65 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 3 May 2022 10:57:27 -0500 Subject: Flip over red cards inatead of black --- back/src/Game.ts | 4 ++-- front/pages/index.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/back/src/Game.ts b/back/src/Game.ts index 00b05b4..a658927 100644 --- a/back/src/Game.ts +++ b/back/src/Game.ts @@ -195,8 +195,8 @@ export default class Game { delete p.disconnectListener; (() => { if (this.players[selectedPlayer].stack.length > 0) { - if (this.players[selectedPlayer].stack[0].suit === Suit.Diamonds || - this.players[selectedPlayer].stack[0].suit === Suit.Hearts) this.phase = 3; // Red card + if (this.players[selectedPlayer].stack[0].suit === Suit.Spades || + this.players[selectedPlayer].stack[0].suit === Suit.Clubs) this.phase = 3; // Red card this.players[selectedPlayer].flipped.push(this.players[selectedPlayer].stack[0]); this.players[selectedPlayer].stack.splice(0, 1); return; diff --git a/front/pages/index.tsx b/front/pages/index.tsx index 61adeee..1570d56 100644 --- a/front/pages/index.tsx +++ b/front/pages/index.tsx @@ -24,9 +24,9 @@ const rules = `There are only 5 simple rules! 2. At the beginning of each round, you must rearrange the order of your cards and place them face down in a stack. -3. During the round, players go around in a circle, claiming increasingly greater numbers. If it is your turn to claim a number, you must either claim a larger number than the previously claimed number or call BS. If you call BS, the previous player must flip over their claimed number of black (clubs or spades) cards from the tops of everyone's stacks. +3. During the round, players go around in a circle, claiming increasingly greater numbers. If it is your turn to claim a number, you must either claim a larger number than the previously claimed number or call BS. If you call BS, the previous player must flip over their claimed number of red (heart or diamond) cards from the tops of everyone's stacks. -4. When you click flip, it flips over the top card from that person's stack. If the previous player flips over a red card or cannot flip over their claimed number of black cards, they must choose a card from their stack to give up. Otherwise, the person who called BS must choose one of their cards to give up. +4. When you click flip, it flips over the top card from that person's stack. If the previous player flips over a black card or cannot flip over their claimed number of red cards, they must choose a card from their stack to give up. Otherwise, the person who called BS must choose one of their cards to give up. 5. If you give up all your cards, you lose! Last player remaining wins! @@ -264,7 +264,7 @@ export default function Game() { ))} - {`${gameState.playerTurn} has called BS! ${gameState.lastPlayedPlayer} must flip over ${gameState.lastPlayed} black cards!`} + {`${gameState.playerTurn} has called BS! ${gameState.lastPlayedPlayer} must flip over ${gameState.lastPlayed} red cards!`}
Stacks:
{gameState.players.map((player, i) => ( -- cgit v1.2.3-70-g09d2