https://github.com/zamhedonia/playingcardsengine
Lightweight C++ system for creating and managing playing card decks
https://github.com/zamhedonia/playingcardsengine
playing-cards
Last synced: 3 months ago
JSON representation
Lightweight C++ system for creating and managing playing card decks
- Host: GitHub
- URL: https://github.com/zamhedonia/playingcardsengine
- Owner: zamhedonia
- License: gpl-3.0
- Created: 2024-06-13T22:06:56.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-14T00:05:52.000Z (about 1 year ago)
- Last Synced: 2025-01-17T12:16:20.423Z (5 months ago)
- Topics: playing-cards
- Language: C++
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Playing Cards Engine
### Lightweight system for creating and managing playing card decks### Classes:
- **Card Class**: Represents a single playing card with methods to retrieve its rank, suit, and a string representation.
- **Deck Class**: Manages a collection of cards, offering functionalities like populating the deck with standard playing cards, adding jokers, shuffling the deck, drawing cards and adjusting the deck size.### How to Use:
You can easily integrate these classes into your applications and games. You can easily customize the deck by adjusting the card composition or adding jokers.*Usage Examples are set up in the '**main.cpp**'.*
---
How to compile provided examples:
Linux (requires git & GCC):
```bash
git clone https://github.com/zamhedonia/PlayingCardsEngine.git
cd PlayingCardsEngine
g++ main.cpp deck.cpp card.cpp -o PlayingCardsEngine_CLI-Test.out
```
Windows (requires git & MinGW):
```bash
git clone https://github.com/zamhedonia/PlayingCardsEngine.git
cd PlayingCardsEngine
g++ main.cpp deck.cpp card.cpp -o PlayingCardsEngine_CLI-Test.exe
```