An open API service indexing awesome lists of open source software.

https://github.com/garyhilares/discard-duel

A game where you have to form a straight with 5 of your cards before your computer opponent does.
https://github.com/garyhilares/discard-duel

cards cpp game

Last synced: over 1 year ago
JSON representation

A game where you have to form a straight with 5 of your cards before your computer opponent does.

Awesome Lists containing this project

README

          

Discard Duel


badge-lastcommit
badge-openissues
badge-license
badge-contributors
badge-codesize

## What is Discard Duel?
Discard Duel is a game where you have to form a straight with 5 of your cards before your AI opponent does.
- At the start of each turn, you draw until you have 6 cards in your hand.
- Every turn, each player shows 1 card to their opponent, discard it and draw a new one.
- At the end of every third turn, each player declares a number, and their opponents must discard any card with that number on it.
- The first to have cards with 5 consecutive numbers wins!

### Platforms
- Cross-platform

### Dependencies
#### Development
- A C++ compiler

## Installation and usage
You can build Discard Duel by following the next steps:
1. Clone the repository:
1. Fork the repository in GitHub.
2. Go to your fork and copy the link to clone your repository.
3. Go to Git in your local machine and use the command `git clone (your link)`.
2. Compile the C++ code:
- In UNIX systems, run `./build.sh` to build the game. If your compiler is not g++ or g++ is not on your PATH, you may have to edit the file to match your compiler's path.
- In Windows, you can copy the first part of the command in `./build.sh` into your command prompt or build it manually in other way.
3. Run the program:
- You can run the program either by double clicking on it (in Windows) or running it from the terminal.

## Contributors
Thanks to these wonderful people for making Discard Duel possible!

## License
This work is licensed under a [Creative Commons Attribution 4.0 International License](https://github.com/GaryHilares/Discard-Duel/blob/main/LICENSE).