Skip to content

tesladodger/SnakeAI

Repository files navigation

Snake

Snake game with AI option. Play it normally, or press the 'A' key to let the AI take control.

A* Pathfinding

The game's AI mode uses a version of the A* algorithm entirely made by me.

The head of the snake is the start and the food is the goal.

The tail sections are the obstacles, but only if they can be reached (this is explained better in the code).

Configuration

In the config file, settings like the delay between moves, as well as the high score, are stored.

But does it work?

About

Snake game with A* Pathfinding AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages