The best packhack client. We (@randombenj and @fliiiix) made third place with this bot. Special thanks to @timofurrer 🎉 for helping out.
- a working Python 3.6 development environment (getting started guide)
- experience deploying Python apps to Heroku
- pip to install Python dependencies
- Clone repo to your development environment:
git clone git@github.com:randombenj/packhack.git
- Create a virtualenv
virtualenv env
source env/bin/activate
- Install dependencies using pip:
pip install -r requirements.txt
- Run local server:
python3 -m app
-
Test client in your browser: http://localhost:8080.
-
Test against other bots Use python_local_game. Hints start this app fist and then run
python3 capture.py
. Also use the config insettings.ini
.
- Create a new Heroku app (On Windows use Commandline or PowerShell):
heroku create [APP_NAME] --region eu
- Deploy code to Heroku servers:
git push heroku master
- Open Heroku app in browser:
heroku open
or visit http://APP_NAME.herokuapp.com.
- View server logs with the
heroku logs
command:
heroku logs --tail