Skip to content

Commit 96faee9

Browse files
committed
improved endgame and tricks
1 parent 4a94ae3 commit 96faee9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

exercises/camicia/instructions.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ 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.
21+
That player then starts the next round _only_ if the opponent still has cards in their deck.
2222
- The moment when the winner of the round collects the cards from the central pile is called a **trick**.
2323
- A **trick** can occur in two ways:
24-
- When a player finishes paying their penalty.
25-
- When a player runs out of cards.
26-
- The game **ends** when one player can no longer play a card.
27-
This can occur at the start of a round or while paying a penalty.
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.
2827
- The game **enters a loop** as soon as decks identical to previous ones are played during the game, **not** counting number cards!
2928

3029
## Examples

0 commit comments

Comments
 (0)