Skip to content

CorsairCoalition/Flobot

 
 

Repository files navigation

Flobot

generals.io is a fast-paced strategy game where you expand your land and battle with enemies over theirs. You lose when your general is taken, but capturing an opponent's general gives you control of their entire empire.

This bot is an AI agent that competes on the generals.io bot server. It is used to provide a consistent adversary while testing other bots.

See Generally Genius (GG) framework to develop your own bot!

Configuration

Download config.example.json from the documentation repository and make desired changes.

Execution

Install and run the executable:

npm install -g @corsaircoalition/flobot
flobot config.json

or run directly from npm library:

npx @corsaircoalition/flobot config.json

or use docker:

docker run -it -v ./config.json:/config.json ghcr.io/corsaircoalition/flobot:latest

Usage

Usage: @corsaircoalition/flobot [options] <configFile>

reference bot implementation for generals.io using a combination of heuristics and graph algorithms

Options:
  -V, --version                   output the version number
  -n, --number-of-games <number>  number of games to play (default: "1")
  -d, --debug                     enable debugging (default: false)
  -h, --help                      display help for command

About

reference bot implementation for generals.io using a combination of heuristics and graph algorithms

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 84.0%
  • TypeScript 15.6%
  • Dockerfile 0.4%