- Open a terminal in the project root directory.
- Run the command
maketo compile both the server and the client.
-
To compile: $ make all
-
To run the server (default 3 players): $ ./server.exe 3
-
To run a client (connect to localhost): $ ./client.exe 127.0.0.1
- Objective: Be the first player to get rid of all your cards.
- Setup: 3 to 5 players. Each player starts with 7 cards.
- Gameplay:
- Players take turns in a round-robin.
- On your turn, you must match the top card of the discard pile by either color or number.
- If you cannot play a card, you must draw a card from the deck.
- Action Cards:
- Skip: The next player misses their turn.
- Reverse: Reverses the direction of play.
- Draw Two: The next player draws 2 cards and misses their turn.
- Wild: Player declares the next color to be matched.
- Wild Draw Four: Player declares the next color; next player draws 4 cards and misses their turn.
- Winning: The game ends immediately when a player plays their last card. Scores are updated and saved.