A minimax Battlesnake written in Typescript
Utilized the minimax algorithm to forecast and predict future game states. Complimented with alpha beta pruning to greatly reduce search space for optimal game path.
- Second place in RBC's AI Snake competition
- Flood filling to determine how much space the snake head has access to in each possible direction
- A star to path find towards food
https://www.twitch.tv/videos/1422432127?t=00h57m00s
- In the screenshot above the minimax algorithm predicts several moves ahead that its tail would have moved out of the way after the snake has traversed the green path, allowing for it to escape.