Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tim-hub/awesome-snake
This is battle snake bot in Flask, PostgreSql
https://github.com/tim-hub/awesome-snake
List: awesome-snake
battlesnake
Last synced: 3 months ago
JSON representation
This is battle snake bot in Flask, PostgreSql
- Host: GitHub
- URL: https://github.com/tim-hub/awesome-snake
- Owner: tim-hub
- License: mit
- Created: 2019-03-08T19:54:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T00:22:01.000Z (about 5 years ago)
- Last Synced: 2024-05-21T07:01:11.896Z (6 months ago)
- Topics: battlesnake
- Language: Python
- Homepage:
- Size: 116 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Awesome Battle Snake Bot
[![CircleCI](https://circleci.com/gh/tim-hub/awesome-snake.svg?style=svg)](https://circleci.com/gh/tim-hub/awesome-snake)
[![CodeFactor](https://www.codefactor.io/repository/github/tim-hub/awesome-snake/badge?style=flat-square)](https://www.codefactor.io/repository/github/tim-hub/awesome-snake)![game 1](https://exporter.battlesnake.io/games/c2d1aa50-03c5-4b91-9664-f1ac97f334a3/gif)
![game 2](https://exporter.battlesnake.io/games/36246bc1-75bf-4ff5-a225-5bf6551c3dd6/gif)A simple [Battlesnake AI](http://battlesnake.io) bot written in Python.
## How to
This AI client uses the Flask to serve requests and the [gunicorn web server](http://gunicorn.org/) for running bottle on Heroku. Dependencies are listed in [requirements.txt](requirements.txt).0. set your `.env` (ref `.env.example`)
1. `export LC_ALL=en_US.utf-8;LANG=en_US.utf-8;APP_SETTINGS=config.DevelopmentConfig`
2. `flask run`
3. - or `gunicorn app:app` if you got gunicorn locally## Differences
- 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.