by altf4

altf4 / SmashBot

The AI that beats you at Melee

445 Stars 58 Forks Last release: Not found GNU General Public License v3.0 417 Commits 4 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


The AI that beats you at Melee


  1. What character does SmashBot play?

    Fox, of course!

  2. Does SmashBot cheat?

    The short answer is: No.

    The long answer is that SmashBot only interfaces with the game by pressing buttons on a virtual controller. There isn't anything it does that you couldn't do in principle. It just so happens, however, that a computer is much faster and more reliable than you, so it's able to do things that a human realistically can't.

  3. How is SmashBot designed?

    SmashBot makes decisions on a tiered hierarchy of objectives: Strategies, Tactics, and Chains. Each objective inspects the current game state and decides which lower level objective will be best to achieve it.

    Strategies are the highest level means that the AI will use to accomplish the overall goal. For instance, the SmashBot will typically take the strategy of baiting the opponent into a poor move.

    Tactics are lowish level series of predictable circumstances that we can realistically flowchart our way through. For instance, if the enemy is off the stage we may choose to edge guard them to keep them from getting back on.

    Chains are the lowest level of objective that consists of a "chain" of button presses that Smashers will recognize, such as Wavedash, Jump-canceled Upsmash, etc...

  4. Can I play SmashBot on a regular GameCube or hacked Wii?

    For right now, SmashBot only runs on a PC as a normal computer program. (Meaning that Melee has to be in an emulator)

  5. What Operating Systems does it play on?

    SmashBot runs on Linux, OSX, and Windows!

  6. I found a bug. How can I help?

    Hey thanks, that's awesome! For starters, make sure you can reliably reproduce the bug. Then go ahead and make an Issue on GitHub at If you want to be even MORE awesome, run the AI with the "--debug" flag and upload the CSV file it gives you along with the issue. That CSV contains a full breakdown of the AI's state at each frame, so we can easily pinpoint what went wrong and where.

Setup Steps:

  1. Install libmelee, a Python 3 API for interacting with Dolphin and Melee.

    pip3 install melee
    Also make sure to stay updated on libmelee with
    pip3 install --upgrade melee
  2. Build the Dolphin (Ishiiruka) version here.

  3. Make sure you're running Melee v1.02 NTSC. Other versions will not work.

  4. If you want to play interactively with or against your AI, you'll probably want a GameCube Adapter, available on Amazon here:

  5. If you're using a GameCube Adapter, make sure to install the drivers / configure the udev rules, as described here:

  6. Install come custom Slippi Gecko Codes. You can find them here: Simply replace your existing

    file with this one.
  7. Make sure you have all the

    Gecko Codes enabled.
    (Not the actual exe itself, just the directory where it is)
  9. By default, SmashBot takes controller 2, and assumes you're on controller 1. You can change this with the

    --port N
    option to change SmashBot's port, and
    --opponent N
    to change the human player's port.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.