BattleSnake Tournament

Hosted on tuafm3jh2.snake.battle.upgradeyour.cloud with Taubyte serverless functions. Build a snake bot, deploy it, register, and climb the global leaderboard.

Global Leaderboard

Points: 1st +3, 2nd +2, 3rd +1, participation +1. Tournaments run automatically every 6 hours when 2+ snakes are registered.

# Snake Points Wins Games URL
Loading...

Register Your Snake

How to Participate

Taubyte cloud: battle.upgradeyour.cloud

DNS requirements (admin)

Your Taubyte admin must add these records in the upgradeyour.cloud zone:

A     seer.battle.upgradeyour.cloud          → 176.58.88.143
NS    tau.battle.upgradeyour.cloud           → seer.battle.upgradeyour.cloud
CNAME *.g.battle.upgradeyour.cloud           → substrate.tau.battle.upgradeyour.cloud
CNAME *.snake.battle.upgradeyour.cloud       → substrate.tau.battle.upgradeyour.cloud

For custom domain battle.upgradeyour.cloud, also add TXT on QmNpi4eQ.battle.upgradeyour.cloud (see tau domain registration output).

Prerequisites

1. Select cloud and project

tau select cloud --fqdn battle.upgradeyour.cloud
tau select project --name battlesnake_tournament
tau select application --name tournament

2. Create your snake function

Each snake needs its own generated subdomain so BattleSnake can call /move at the root URL.

MSYS_NO_PATHCONV=1 tau new function my_snake \
  --type https --generate-domain \
  --method GET --paths / \
  --method POST --paths /start --paths /move --paths /end \
  --language Go --source . --template empty \
  --call MySnakeInfo --memory 64MB --timeout 5s

Copy logic from snake_starter in the code repo, or fork snake_move/empty.go for smarter behavior.

3. Implement the BattleSnake API

  1. GET / — return apiversion, color, head, tail
  2. POST /start — game start (response ignored)
  3. POST /move — return {"move":"up|down|left|right"} within 500ms
  4. POST /end — game over (response ignored)

4. Deploy

tau push project --code-only
curl https://YOUR-GENERATED-DOMAIN/

5. Register and compete

Use the form above or:

curl -X POST https://tuafm3jh2.snake.battle.upgradeyour.cloud/api/register \
  -H "Content-Type: application/json" \
  -d '{"name":"My Snake","url":"https://YOUR-DOMAIN","author":"you"}'

Starter snake reference

Official starter URL for testing:

https://tuafm3jh1.snake.battle.upgradeyour.cloud

Local testing with BattleSnake CLI

battlesnake play -W 11 -H 11 \
  --name Starter --url https://tuafm3jh1.snake.battle.upgradeyour.cloud \
  -g solo -v