A battlesnake for https://play.battlesnake.com/
Create an app on Heroku, which prepares Heroku to receive your source code:
$ heroku create <name of the app>
Now deploy the code to Heroku:
$ git push heroku master
Ensure that at least one instance of the app is running:
$ heroku ps:scale web=1
Now visit the app at the URL generated by its app name. As a handy shortcut, you can open the website as follows:
$ heroku open
If you need to check the logs of the deployed app:
$ heroku logs --tail
You can run the app locally with Heroku:
$ heroku local
The battlesnake field is a 2D grid with integer coordinates. The origin is located in the top-left corner. The width and height of the board are the outer borders of each board and can be seen as the length of the coordinate arrays. This is represented in the figure below: