Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orangomango/snake

Snake game (Bot included) using the Hamiltonian cycle and some pathfinding algorithms.
https://github.com/orangomango/snake

ai java javafx snake webfx

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Perfect snake AI
Snake game (Bot included) using the Hamiltonian cycle and some pathfinding algorithms.

## Download
itch.io page: https://orangomango.itch.io/snake
Available for browser, windows, mac and linux (amd64 and arm64)

## Keys
* Use Arrows to move the snake.
* F1 to toggle FPS and Hamiltonian path visualization
* F2 to toggle AI.
* 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).

![Screenshot from 2024-01-02 19-49-46](https://github.com/OrangoMango/Snake/assets/61402409/8f11193e-24df-40bd-9b93-1f87c44eae70)