Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unsignedarduino/blackjackstats
Simulations for the gambling card game Blackjack.
https://github.com/unsignedarduino/blackjackstats
blackjack gambling gambling-game game game-simulation simulation statistics
Last synced: about 2 months ago
JSON representation
Simulations for the gambling card game Blackjack.
- Host: GitHub
- URL: https://github.com/unsignedarduino/blackjackstats
- Owner: UnsignedArduino
- License: gpl-3.0
- Created: 2024-05-18T03:17:28.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T22:45:02.000Z (7 months ago)
- Last Synced: 2024-06-01T23:52:27.002Z (7 months ago)
- Topics: blackjack, gambling, gambling-game, game, game-simulation, simulation, statistics
- Language: C++
- Homepage:
- Size: 387 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlackJackStats
[![CMake on multiple platforms](https://github.com/UnsignedArduino/BlackJackStats/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/UnsignedArduino/BlackJackStats/actions/workflows/cmake-multi-platform.yml)
Simulations for the gambling card game Blackjack.
## Install
The steps below assume Windows. You can also use the CMake GUI.
1. Install MinGW and Make or Ninja.*
2. Install CMake.
3. Clone this repo.
4. `mkdir build && cd build` in project root.
5. `cmake .. -G "MinGW Makefiles"` or `cmake .. -G "Ninja"`.* For Linux, use the `Unix Makefiles` generator.
6. `cmake --build .`\* You could probably use other generators that end up using `gcc`/`g++` or `clang`, but that is untested.
[//]: # (`g++ src/*.cpp -o main.exe` seems to work without issues on Windows)
## Usage
Run `main.exe` in the `build` directory.
## Testing
Run a `test_*.exe` or `ctest` in the `build` directory.
### Writing tests
Check out [`/tests/test_cardhands.cpp`](tests/test_cardhands.cpp) for an example on how to use the horrible testing
macros I've created. Look in [`/tests/test_helpers.h`](tests/test_helpers.h) to see all the available macros.