Skip to content

Commit 6b01ea9

Browse files
committed
improved explanation of tricks
1 parent b1c23b7 commit 6b01ea9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

exercises/camicia/instructions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ Your program will receive the initial configuration of two players’ decks and
1717
- If the player paying a penalty reveals another payment card, that player stops paying the penalty and the other player much then pay the penalty.
1818
- 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.
1919
That player then starts the next round.
20-
- The game ends when one player has no more cards.
20+
- The moment when the winner of the round collects the cards from the central pile is called a **trick**.
21+
- A **trick** can occur in several ways:
22+
- When a player finishes paying their penalty → the game continues
23+
- When a player runs out of cards while paying a penalty → the game ends
24+
- When a player can no longer place a card in the central pile → the game ends
25+
- The game **ends** when one player can no longer respond by playing a card, in general.
26+
- The game **enters a loop** as soon as decks identical to previous ones are played during the game, ***not*** counting number cards!
2127

2228
## Example
2329

0 commit comments

Comments
 (0)