Skip to content

LeoWuVinci/agar.io-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

UPDATE 2021 - DO NOT USE.

This framework was built to foster an environment where players and bots can live together. It encouraged the possibility of a client-side API where players and bots played on equal ground. A WIN-WIN situation.

As proof where real players and bots can coexist, look no further than MOBA minions, Titanfall, and ALMOST EVERY SINGLE PLAYER GAME.

Instead, the agario team actively created obstacles. Thereby encouraged communicating directly with the server protocol which encourages a feeder-bot community that is always fighting with the game devs. A LOSE-LOSE situation.

agario-bot-framework

Agar.io Bot Framework for others to create their own bots.

Hacks? Cheats? None of that here. Just bots trying to get along with humans.

You can try out the sample bot included for free in the chrome store.

Even though the bot included has many different algorithms such as genetic algorithms and velocity prediction, it is just an example and isn't optimized to get on the leaderboard. Please consider it as a sample of what is possible.

Feel free to fork this project and create your own custom bot

See the latest bot in action as well as development while streaming at

http://twitch.tv/gamerlio or http://livecoding.tv/heyitsleo

How to Install from GitHub

  1. Click the "Download ZIP" button on the right panel of https://github.com/leomwu/agario-bot
  2. Unzip anywhere you want.
  3. Go to "chrome://extensions" in your chrome browser
  4. Checkbox "Developer mode"
  5. Click on "Load unpacked extension..." and find your unzipped file and go to the "src" folder

Now you can see it in action when you go to agar.io

If you modify the script, remember to reload the extension.

For a video installation guide, please go to https://youtu.be/fEVX4xmEn4s

Purpose

The purpose of this bot is to explore decision-making based on statistics instead of hard-coded rules. This is not a bot to enhance normal gameplay. There's also no team-related features. Considerations should be fairly simple and not need to consider more than one other organism at a time. This effectly excludes any "advance" strategies. The code is designed to be "forked" easily so everything is kept at the bare necessities. If you want to (for example) create a better pathfinder, forking the code would be the best choice.

Main Components

  • Binding to Original Game Code
  • Action Generators - Generates move, split, and shoot actions.
  • Considerations - Game strategies broken down into small pieces.
  • Distance-Delayed Best-First Searching
  • Bot Intuition - Weighted Averages of considerations.

How can the bot be improved?

  1. Datastructure for making more advance proximity-based considerations
  2. More action generators
  3. More consideration functions

Fun Fork Ideas

  • Hide'n'seek
  • Sniper
  • Bet the score
  • VIP

Ways to Support This Project

  1. Stars and Forks really help
  2. Link to https://github.com/leomwu/agario-bot from your project's README.md

Why Support?

By supporting the project, I can use my time to add these kind of features:

  • More code refactoring
  • More documentation and tutorials
  • Server to host custom action generators and considerations

Other Agar.io Projects

Chrome Extensions

  • Epic Pretty Mods - Load skins from your computer, Acid Mode, Parallax, No Grid Lines, Transparent Blobs, and much more to come!!!
  • Epic Pretty Mods (Supporters Edition) - Thank you! Experimental features are included in the supportors edition.
  • Server Info - Shows region, game mode, and ip address of the server up top.