Inspiration
This game reminds me of slither.io, a game I used to play all the time when I was little where you have to move your snake around, block others, and grow gathering mass across the field. In my project, I tried to incorporate functions to represent how I used to play.
What it does
My bot uses a combination of different search algorithms to mainly target open space and end routes, stay more passive when there are more than 2 snakes, and find attacking points so I can cut other snakes off. I used a weighting system to allow the snake to make "decisions" based on the current state of the board.
How we built it
I coded solo, and decided that using Rust would be the best as I could make it super efficient while also allowing myself to use more time for search and game algorithms such as Voronoi.
Challenges we ran into
There were many times when I would make a change hoping to improve a certain part of gameplay, but then go and ruin another part. Keeping the balance between the weighting was definitely the hardest part.
Accomplishments that we're proud of
I'm definitely proud of getting my code to work with Rust. Through installing many dependencies, I was finally able to get it working properly.
What we learned
I learned a lot about Rust that I didn't know before! Mainly syntax such as how to make structs, but also the best way to format my code overall.
What's next for Battlesnake - The Snakiest
There are definitely more bugs I could fix along the way, but hopefully none of them show up in the competition!
Built With
- fly.io
- rust
Log in or sign up for Devpost to join the conversation.