A terminal-based UNO game implementation in C with AI opponents and full rule support.
- Text-based game interface
- Complete official UNO rules
- AI system with varying strategies
- Multiplayer support (2-10 players)
- C standard libraries only
- Modular, easy-to-extend code
UNO is a card game created by Merle Robbins in 1971. Players race to discard all their cards.
Quick Facts:
- Players: 2–10
- Cards: 108
- Playtime: 15–30 minutes
Core Rules:
- Start with 7 cards
- Play cards matching the top card by number, color, or type
- Draw a card if you can't play
- Declare "UNO" with one card left (penalty: draw 2)
Special Cards:
| card | Effect |
|---|---|
| Skip | Next player loses turn |
| Reverse | Reverses turn order |
| Draw Two | Next player draws 2, loses turn |
| Wild | Choose a color |
| Wild Draw Four | Choose color, next player draws 4, loses turn |
To compile and run the Uno game, follow these steps:
-
Ensure you have a C compiler (e.g.,
gcc) and make installed. -
In this directory, run the following command to compile the game:
make
-
When building the application, two directories will appear:
objandbin. The program executable is located in thebindirectory. -
To run the game, execute the following command:
./bin/uno