@corsaircoalition/flobot
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

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

/@corsaircoalition/flobot/

    Package Sidebar

    Install

    npm i @corsaircoalition/flobot

    Weekly Downloads

    1

    Version

    6.0.0

    License

    Apache-2.0

    Unpacked Size

    103 kB

    Total Files

    45

    Last publish

    Collaborators

    • aaditya