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.
- Host: GitHub
- URL: https://github.com/garyhilares/discard-duel
- Owner: GaryHilares
- License: cc-by-4.0
- Created: 2022-12-22T02:06:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T19:57:57.000Z (about 2 years ago)
- Last Synced: 2024-04-22T11:58:54.529Z (about 2 years ago)
- Topics: cards, cpp, game
- Language: C++
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Discard Duel
## 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).