Skip to content

jieisused/uno-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNO Game - Operating Systems Assignment

How to compile (make) and run

  1. Open a terminal in the project root directory.
  2. Run the command make to compile both the server and the client.

Example commands

  1. To compile: $ make all

  2. To run the server (default 3 players): $ ./server.exe 3

  3. To run a client (connect to localhost): $ ./client.exe 127.0.0.1

Game rules summary

  • 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.

About

a multiplayer UNO created using C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors