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.
Click on the button above to clone the template repo and create your own snake.
Visit Battlesnake Quickstart for a description of how to define Kotlin and Java snakes.
Examples of Battlesnakes created with this framework are here.
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
.
Details on deployment options are here