A multi-player Snake game where every snake is controlled by a classic AI search algorithm. Each snake heads for food while avoiding walls, the other snakes and itself, and you can pit different algorithms against each other.

  • Five search algorithms: depth-first, breadth-first, uniform-cost, greedy and A*
  • Choose an algorithm for each team from a dropdown, then watch them race
  • Real-time path following, one move per tick, with a debug view of each snake’s planned path
  • A 3D mode with a custom perspective view of the grid (desktop only)
  • A choice of maps to change the environment
  • Playable in the browser: pick an algorithm for each snake and watch them race

Role SoloBuilt with NetLogoMade for CMP2020 Artificial Intelligence, University of Lincoln

The browser version is the 2D game (running on NetLogo Web). The 3D mode lives on its own branch and needs desktop NetLogo 3D.


The 3D mode

📝 Read the devlog: how it was built and what I learned.

← All projects