/battlesnake-rusty

My first Battlesnake!

Primary LanguageRustMIT LicenseMIT

Rusty - A beginner's battlesnake

This is my first Battlesnake and significant Rust project! Created from the official starter-snake-rust starter project from Battlesnake.

See the Battlesnake API Docs for more detail.

Technologies Used

This project uses Rust and Rocket. It also comes with an optional Dockerfile to help with deployment.

Run Your Battlesnake

cargo run

You should see the following output once it is running

🚀 Rocket has launched from http://0.0.0.0:8000

Open localhost:8000 in your browser and you should see

{"apiversion":"1","author":"","color":"#888888","head":"default","tail":"default"}

Play a Game Locally

Install the Battlesnake CLI

Command to run a local game

battlesnake play -W 11 -H 11 --name 'Rust Starter Project' --url http://localhost:8000 -g solo --browser

Next Steps

Continue with the Battlesnake Quickstart Guide to customize and improve your Battlesnake's behavior.

Note: To play games on play.battlesnake.com you'll need to deploy your Battlesnake to a live web server OR use a port forwarding tool like ngrok to access your server locally.