Generals.io is a multiplayer web game where the goal is to protect your general and capture the enemy generals.
This is a collection of various automated clients (bots) for playing Generals.io. The project includes a toolkit for creating bots, as well as a UI viewer for watching live games.
Project available on GitHub.
- Python3 (https://www.python.org/downloads/)
- Install Dependencies:
pip3 install -r requirements.txt
- NPM Forever:
npm install -g forever
(optional)
-
Blob Bot:
python3 bot_blob.py [-name] [-g gameType] [-r roomID]
-
Path Bot:
python3 bot_path_collect.py [-name] [-g gameType] [-r roomID]
-
Run Forever:
forever start -c python3 bot_blob.py -name BotName -g ffa
- bot_blob.py
- move_toward: Run largest army to nearest priority target
- move_outward: Move Border Armies Outward
- bot_path_collect.py
- Primary Path Routine: Run path from largest city to primary target
- Continue running after reaching primary target
- Collect Troops Routine (Run largest army toward nearest path tile)
- Move Border Armies Outward
- Proximity Targeting
- Primary Path Routine: Run path from largest city to primary target
- samples/nearest.py: Run largest army to nearest priority target
@harrischristiansen HarrisChristiansen.com ([email protected])