Skip to content

Commit b65f34e

Browse files
committed
simplified rules
1 parent 49f6441 commit b65f34e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

exercises/camicia/instructions.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Your program will receive the initial configuration of two players' decks and mu
66
## Rules
77

88
- The deck is split between **two players**.
9-
Each player's cards are represented as a string where the leftmost character is the top of the deck.
9+
The player's cards are read from left to right, where the leftmost card is the top of the deck.
1010
- A round consists of both players playing at least one card/turn.
1111
- Players take a turn by placing the **top card** of their deck onto a central pile.
1212
- If the card is a **number card** (2-10), play simply passes to the other player.
@@ -18,12 +18,10 @@ Your program will receive the initial configuration of two players' decks and mu
1818
- If the player paying a penalty reveals another payment card, that player stops paying the penalty.
1919
The other player must then pay a penalty based on the new payment card.
2020
- If the penalty is fully paid without interruption, the player who laid the **last payment card** collects the central pile and places it at the bottom of their deck.
21-
That player then starts the next round _only_ if the opponent still has cards in their deck.
22-
- The moment when the winner of the round collects the cards from the central pile is called a **trick**.
23-
- A **trick** can occur in two ways:
24-
- When a player finishes paying their penalty, whether or not they run out of cards in the process
25-
- When a player cannot respond to a number card with another number card because their deck has been emptied.
26-
- The game **ends** when one player runs out of cards while paying a penalty in full or in part, or when they cannot respond to a number card due to empty deck.
21+
That player then starts the next round.
22+
- The moment when a player collects cards from the central pile is called a **trick**.
23+
- If a player has all the cards in their possession after a trick, the game **ends**.
24+
- The game **ends** when one player has all the cards in their deck.
2725
- The game **enters a loop** as soon as decks identical to previous ones are played during the game, **not** counting number cards!
2826

2927
## Examples

0 commit comments

Comments
 (0)