Skip to content

chankyuoh/SnakeAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game AI

alt text

The AI that plays the game uses the A Star Search Algorithm to find the least cost path. The AI uses the Euclidian distance from the head of the snake to the food as a heurstic (an admissible heuristic, as this never overestimates the cost of reaching the goal) to get better results than Dijkstra's least cost path Algorithm.

Snake Game GUI built using TkInter python module.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development.

Clone the repo from the command line

git clone https://github.com/chankyuoh/SnakeGame.git

go into the newly created directory called 'SnakeGame'

cd SnakeGame

Run the game

python SnakeGame.py

About

Optimized AI Player of Snake Game using A* Algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages