Perfect snake AI

Snake game (Bot included) using the Hamiltonian cycle and some pathfinding algorithms.

Source code: https://github.com/OrangoMango/Snake

Keys

Use Arrows to move the snake.

  • F1 to toggle FPS and Hamiltonian path visualization (I in the browser version)
  • F2 to toggle AI. (H in the browser version)
  • O/P to change the snake's speed
  • SPACE to pause/resume

The first slider changes the cell size (Max: small playground) and the second one changes the tick time (in milliseconds, Max: slow game).

Download

Download
Snake 1.0 android
External
Download
snake-2.0-windows.zip 37 MB
Download
snake_2.0-1_arm64.deb 35 MB
Download
snake_2.0-1_amd64.deb 38 MB
Download
Snake-2.0.pkg 38 MB
Download
Snake-2.0.msi 38 MB

Install instructions

Linux

Download the .deb file and install it with this command

With sudo: 

sudo dpkg -i file-name.deb 

Without sudo:

dpkg -x file-name.deb . 

Windows

Wrapper:

  • Download and extract the zip file
  • Double click on the exe file (be sure that there is a "jre" directory in the same location of the exe file).

Everything else

  • Download the correct file for your architecture
  • Double click on the executable file

Leave a comment

Log in with itch.io to leave a comment.