Skip to content

harrischristiansen/generals-bot

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Generals.io - Automated Client

Generals.IO Gameplay Image

Synopsis

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.

Setup

Usage

  • 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

Features

Bots

  • 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

Sample Code

  • samples/nearest.py: Run largest army to nearest priority target

Contributors

@harrischristiansen HarrisChristiansen.com (code@harrischristiansen.com)

About

Automated Client for generals.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published