cpp-gamedev / cpbj

Simple blackjack game written in C++ using SFML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blackjack

Dev Notes

To configure a new build, enter the root directory, and run

cmake . -B out/debug -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

Then build the game:

cmake --build out/debug

This project uses the LLVM style for clang-format:

clang-format --style=llvm -dump-config > .clang-format

See the [docs](https://clang.llvm.org/extra/clang-tidy/ for all options. Run clang-tidy -list-checks in the command line to list all enabled checks.

clang-tidy ./src/*.?pp -dump-config -checks='clang-analyzer-*,modernize-*,performance-*,readability-*' > .clang-tidy

Run clang-tidy. Add the -fix option to automatically apply suggested fixes.

clang-tidy -config='' -p ./out/debug -header-filter='.*' ./src/*.?pp

About

Simple blackjack game written in C++ using SFML


Languages

Language:CMake 86.2%Language:C++ 13.8%