aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-05-03 10:57:27 -0500
committerAnthony Wang2022-05-03 10:57:27 -0500
commita13b6f46a00e3f0e34a1d95a87492cb5da539e65 (patch)
treeb858d0fbde81441e91d618e4c26f0a5581bdcc9d
parentabd3e2edc1e695f0d34a4010e3250203927a9fe8 (diff)
Flip over red cards inatead of blackHEADmaster
-rw-r--r--back/src/Game.ts4
-rw-r--r--front/pages/index.tsx6
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() {
</li>
))}
</ul>
- {`${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!`}
<div>
<p>Stacks:</p>
{gameState.players.map((player, i) => (