AI for Snake game using A star algorithm.
Works right in the terminal. Uses Astar to find the route
Astar:
fn = gn+ hn
here,
gn is the total moves taken for a food
hn is the manhattan distance
Customize the game values with the constant.py
file
- Clone the repo
$ https://github.com/AP-Atul/SnakeAI.git
- Install the curses package
$ pip install curses
- Run the main file in the terminal
$ python main.py