Skip to content

About

a maze generator and solver using A* in python with pygame

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Generating and Solving Mazes

Generation Part

To generate a maze and make sure a solution exists. I choose a wall at random and compare the colour of each dimension of this wall for the x or y axis. If the colour is different then the wall takes the colour of one of the two colours and propagates that same colour. I repeat this operation as many times as there are walls.

maze gif

Solving Part

To resolve the maze as quickly as possible I used the A* algorithm. This algorithm consists of evaluating each neighbours of a position to determine the best direction to take

Maze Solver Gif

Big Maze

About

a maze generator and solver using A* in python with pygame

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Contributors

Languages