Skip to content

Simple C++ controller to manage bot for king of the hill game

License

Notifications You must be signed in to change notification settings

edmBernard/KoTH-pandemic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple C++ controller to manage bot for king of the hill game

Resources

License

Stars

Watchers

Forks