A simple Battlesnake AI bot written in Python.
This AI client uses the Flask to serve requests and the gunicorn web server for running bottle on Heroku. Dependencies are listed in requirements.txt.
- set your
.env
(ref.env.example
) export LC_ALL=en_US.utf-8;LANG=en_US.utf-8;APP_SETTINGS=config.DevelopmentConfig
flask run
-
- or
gunicorn app:app
if you got gunicorn locally
- or
- bottle => flask
- no db => PostgreSQL db (to store turns and games data)
Visit https://github.com/battlesnakeio/community/blob/master/starter-snakes.md for API documentation and instructions for running your AI.