Skip to content

pambrose/battlesnake-template

Repository files navigation

Battlesnake Snake Template

Build Status

Open in Gitpod Deploy on Heroku Run on Repl.it

A template for creating your own Battlesnake written in Kotlin and Java using the Battlesnake Quickstart framework.

Visit Battlesnake.io for API documentation and instructions for creating a game.

Clone a new snake

Click on the button above to clone the template repo and create your own snake.

Template Snakes

Kotlin

Java

Snake Definitions

Visit Battlesnake Quickstart for a description of how to define Kotlin and Java snakes.

Examples of Battlesnakes created with this framework are here.

Snake Execution

Assign the mainName variable in build.gradle to the desired fully qualified snake classname. For example:

def mainName = 'MyKotlinSnake'

You can run a snake with a script or as an uberjar:

  • Build and run the script build/install/battlesnake-template/bin/snake with: make script.

  • Build and run the uberjar build/libs/snake.jar with: make uber.

Deployment Options

Details on deployment options are here