GithubHelp home page GithubHelp logo

vkurenkov / haxball-chameleon Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 5.0 54.68 MB

Solving Haxball (www.haxball.com) using Imitation Learning methods.

License: MIT License

JavaScript 97.51% Python 2.37% HTML 0.13%
bot imitation-learning machine-learning haxball behavioral-cloning

haxball-chameleon's Introduction

Haxball Chameleon

This repository contains an interface for interacting with the game and an implementation of behavioral clonning agent.

What is HaxBall anyway?


HaxBall is a realtime multiplayer game that plays like a mix between football and air-hockey, and it's a real blast (official about).

How to run my agents?


LINUX ONLY.

Make the server running.

  1. Add the following line to your hosts file (c:\windows\system32\drivers\etc\hosts on windows, /etc/hosts on linux)
127.0.0.1 inter.haxball.com
  1. Start the server
python run_server.py

Call up your agent.

  1. Edit run_bot.py script to instantiate your agent (an example is provided).

  2. Start interaction between the agent and the server. The server allows multiple connections, thus you should provide your connection channel (any integer you like, defaults to 0).

python run_bot.py --channel-id=0
  1. Open inter.haxball.com:8080/#channel_id in your browser. This is the original game with slight modifications to allow sending states and accepting the inputs from the bot.

How to parse replays?


  1. Run raw replays converter. It will preprocess raw replays, put them into a separate folder, and create a file with nickname mapping (nickname -> all replays).
python run_converter.py --path=replays/
  1. Use utilities provided in replay.py to parse converted replays.

haxball-chameleon's People

Contributors

goshaq avatar luab avatar turuslan avatar vkurenkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

haxball-chameleon's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.