This repository has been archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
yan12125/HungerGamesAI
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
IMPORTANT NOTE: Only tested on Arch Linux and Ubuntu 14.10 Install required packages for Arch Linux sudo pacman -S nodejs python2-gevent python2-ws4py python2-texttable yaourt -S --noconfirm python2-colorama cd server/ npm install Install required packages for Ubuntu 14.10 sudo apt-get install nodejs python-gevent python-ws4py python-texttable python-colorama cd server/ npm install How to run server? cd server/ node main.js How to run Javascript client? Open your favorite browser and navigate to http://localhost:3000/. Currently only Firefox and Chrome tested. How to run python client? cd python/ python2 main.py -a [agent name] How to run communicate client? cd python/ python2 CommuteServer.py python2 main.py -a iwillbombyoulisten -f None python2 main.py -a iwillbombyoucommute -f [listener's id] Agents are below the agents/ directory. See existing files as examples Existing agents: idle: do nothing drunken: go straight and turn when kicking walls or bombs bomber: put bombs and avoid bombing as best as possible Want to using python 3 (on Arch Linux)? ws4py and colorama is easy: sudo pacman -S python-ws4py yaourt -S --noconfirm python-colorama However, gevent and texttable are tricky For gevent, official version does not support python 3. @fantix's fork is available. sudo pacman -S cython pip install --user --upgrade git+https://github.com/fantix/gevent For texttable, we need the git version because the latest official release does not support python 3 yet pip install --user --upgrade git+https://github.com/bufordtaylor/python-texttable
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published