Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.53 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.53 KB

KoTH: A world-wide pandemic

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.

Add a Bot

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.

Compilation

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

Compilation

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

Disclaimer

It's a toy project. So if you spot error, improvement comments are welcome.