Crazy Eights is a fun and interactive card game you can play directly in your terminal. Compete against the computer and be the first to play all your cards!
- https://1drv.ms/v/c/67b6b617b199262c/EXTBg1KkxfJIq-E8VEY6OmAB4vrAsvWxrVQou4iZbdXLfA
- Python Crazy Eights MP4
- Play against 1-3 computer opponents.
- Simple and intuitive command-line interface.
- A complete deck represented by letters for suits and ranks.
- Python 3.7 or newer installed on your computer.
- A terminal or command prompt to run the program.
-
Open your terminal or command prompt.
-
Run the following command to clone the repository:
git clone https://github.com/binbang12/crazy-eights.git
-
Navigate into the project directory:
cd crazy-eights
-
Ensure you have Python 3.7 or later installed. You can check by running:
python --version
-
Run the game using the following command:
python main.py
- The goal is to get rid of all your cards.
- On your turn, play a card that matches the current face-up card by either suit or rank.
- If you can't play a card, you can choose to draw a card from the deck.
- Wild cards (Eights) allow you to change the suit to one of your choice.
- The first player to play all their cards wins the game!
To contribute to this repo, follow the below steps:
- Fork the repository.
- Create a new branch
(git checkout -b feature-name)
. - Make your changes and commit
(git commit -am 'Add new feature')
. - Push to the branch
(git push origin feature-name)
. - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.