Skip to content

binbang12/crazy-eights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crazy Eights - Python Command-Line Game

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!

Video Demo

Features

  • Play against 1-3 computer opponents.
  • Simple and intuitive command-line interface.
  • A complete deck represented by letters for suits and ranks.

Installation

Prerequisites

  • Python 3.7 or newer installed on your computer.
  • A terminal or command prompt to run the program.

Clone the Repository

  1. Open your terminal or command prompt.

  2. Run the following command to clone the repository:

    git clone https://github.com/binbang12/crazy-eights.git
  3. Navigate into the project directory:

    cd crazy-eights

Running the Game

  1. Ensure you have Python 3.7 or later installed. You can check by running:

    python --version
  2. Run the game using the following command:

    python main.py

How to play

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

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages