Skip to content

Uses a* pathfinding or the model will take control when no path is found

Notifications You must be signed in to change notification settings

erik-sv/SnakeAI-With-AStar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeAI using A* Pathfinding

SnakeAI

Local Development Setup

Before starting, these components must be installed (requirements.txt has them, look below for instructions)

  • python
  • pip
  • pygame
  • torch
  • numpy
  • matplotlib (for plotting training results)

Start by cloning this repository into a local folder/directory:

git clone https://github.com/wylieglover/SnakeAI-with-AStar.git

Navigate into the repository's folder and run this command to download the necessary components:

pip install -r requirements.txt

Then finally run the agent.py file with the command below to begin training!

python3 agent.py

About

Uses a* pathfinding or the model will take control when no path is found

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%