SnakeAI Pro

Snake AI: The Challenge

Control the snake or let the Artificial Intelligence take the wheel!

Points: 0 Mode: Manual

Snake AI

Techlogies used

HTML

Basic skeleton of the website

CSS

Layout, gradients and the vizuals

JavaScript

All of logics and Pathfinding

How AI find the youy way out

The A* patchfinder explores the grid and find the better local to continues

Snake Apple Obstacle

How AI explores the board

The A* algorithm explores the board as a grid of nodes.

1° step

Each neighboring house becomes a node, at a cost. g (distance already covered since the start).

2° step

A heuristic is added. h ,which estimates the distance to the apple.

3° step

The node with the smallest f = g + h is chosen, repeating until the destination is reached.

Contact