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.
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.
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