AI Snake

AI Snake

This is a simple snake game where the snake is controlled by a neural network. The game is built using SDL2. The ai itself is a reward based system where the snake is rewarded for eating the food and penalized for hitting the walls or itself.

Build your own

  1. Make sure you have SDL2, Make and GCC installed.

  2. Build the project

make
  1. Run the project
./snake

Demo