Snake AI – A* search algorithm

The project applies the A* search algorithm to solve the shortest path problem in the Snake game.


snake game


  • SDL2 >= 2.0
    • All installation instructions can be found here
    • Note that for Linux, an apt or apt-get installation is preferred to building from source.
  • gcc/g++ >= 5.4

Build Instructions

  • Creating a snake project in visual studio
  • Installing SDL2
  • Copying all files in scr into the project.


View Github