Skip to content

Latest commit

 

History

History

HamiltonianCycle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Snake AI - Hamiltonian Cycle

Description

This is an example of a movement algorithm/pattern to win the snake game. With this algorithm it will always run the entire map.

Preview

<iframe width="560" height="315" src="https://www.youtube.com/embed/fsR_MFOShEI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Make it run

Clone and change directory

Clone the project and move it into the HamiltonianCycle folder:

git clone https://github.com/201flaviosilva-labs/snake-ai.git
cd snake-ai/HamiltonianCycle

Open in you browser

Double click in the index.html file.