/packhack

Primary LanguagePython

packhack

The best packhack client. We (@randombenj and @fliiiix) made third place with this bot. Special thanks to @timofurrer 🎉 for helping out.

Deploy

You will need...

Running the Packhack Locally

  1. Clone repo to your development environment:
git clone git@github.com:randombenj/packhack.git
  1. Create a virtualenv
virtualenv env
source env/bin/activate
  1. Install dependencies using pip:
pip install -r requirements.txt
  1. Run local server:
python3 -m app
  1. Test client in your browser: http://localhost:8080.

  2. Test against other bots Use python_local_game. Hints start this app fist and then run python3 capture.py. Also use the config in settings.ini.

Deploying to Heroku

  1. Create a new Heroku app (On Windows use Commandline or PowerShell):
heroku create [APP_NAME] --region eu
  1. Deploy code to Heroku servers:
git push heroku master
  1. Open Heroku app in browser:
heroku open

or visit http://APP_NAME.herokuapp.com.

  1. View server logs with the heroku logs command:
heroku logs --tail