Simulations for the gambling card game Blackjack.
The steps below assume Windows. You can also use the CMake GUI.
- Install MinGW and Make or Ninja.*
- Install CMake.
- Clone this repo.
mkdir build && cd buildin project root.cmake .. -G "MinGW Makefiles"orcmake .. -G "Ninja".* For Linux, use theUnix Makefilesgenerator.cmake --build .
* You could probably use other generators that end up using gcc/g++ or clang, but that is untested.
Run main.exe in the build directory.
Run a test_*.exe or ctest in the build directory.
Check out /tests/test_cardhands.cpp for an example on how to use the horrible testing
macros I've created. Look in /tests/test_helpers.h to see all the available macros.