A simple King of The Hill game. The goal is to allow user to create bot that play the game. Example of of problem can be found here King of the hill.
The game implemented on this repository is a reimplementation of this game.
To add a new bot. You just have to create new *.cpp
file inside bots
directory. There is some bots example in the bots/basic.cpp
file. Keep one bots per file. The game can be run locally with the koth-pandemic
executable otherwise the game is run with github action on each push on the main
branch and on each pull request.
We use vcpkg to manage dependencies
This project depends on:
- cxxopts: Command line argument parsing
- fmt: A modern formatting library
- spdlog: Very fast, header-only/compiled, C++ logging library
./vcpkg install spdlog cxxopts fmt
mkdir build
cd build
# configure make with vcpkg toolchain
cmake .. -DCMAKE_TOOLCHAIN_FILE=${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake
cmake.exe --build . --config Release
the server executable is named koth-pandemic
It's a toy project. So if you spot error, improvement comments are welcome.