A snake game AI written in C using ncurses.
The bot uses the A* algorithm to find it's path towards the food.
More info: wikipedia
The game could also be played manually but why would you do that?
make
# run bot
./csnek -b -s 2
$ ./csnek -h 17:29:46
CSNEK :: A bot that plays snake
Optional args:
-H play the game like a real human! (default)
-b let the bot do the work!
-s speed in miliseconds inbetween draws (default=100)
-g grow amount (default=1)
-f amount of food generated (default=1)
h, ← move left
j, ↓ move down
k, ↑ move up
l, → move right
<space> toggle pause
q quit