Skip to content

WbaN314/battlesnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b36cd9 · Oct 19, 2024
Mar 31, 2024
Jul 26, 2024
Oct 19, 2024
Oct 13, 2024
Oct 9, 2024
Oct 13, 2024
Oct 13, 2024
Oct 13, 2024
Feb 22, 2024
Oct 9, 2024
Feb 22, 2024
Aug 13, 2024
Aug 13, 2024
Jul 24, 2024
Jul 24, 2024

Repository files navigation

Battlesnake Rust Project

Competing at play.battlesnake.com. Each participant provides the brain of his own snake on a self hosted server to survive the longest on the playing field. Games run daily and a leaderboard of the smartest snakes is created. Here is the current ranking of this snake.

Technologies Used

This project uses Rust and Rocket for performance reasons (simulating future gamestates scales exponentially so optimization is key). It also comes with an Dockerfile that is used for easy Google Could Run deployment.

Commands

cargo run
cargo test
cargo bench

To test snakes against stored states

VARIANT=simple_hungry cargo test
VARIANT=simple_tree_search cargo test
VARIANT=depth_first cargo test
VARIANT=breadth_first cargo test