Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/haydend100/mazegeneration-with-prims-algorithm

My implementation of Prims algorithm to randomly generate mazes
https://github.com/haydend100/mazegeneration-with-prims-algorithm

maze-algorithms maze-generation-algorithms maze-generator prims-algorithm prims-implementation random-generation random-maze randomized-prim-algorithm

Last synced: 3 days ago
JSON representation

My implementation of Prims algorithm to randomly generate mazes

Awesome Lists containing this project

README

        

# Randomized Prim's
Prim's Algorithm is a graphing algorithm used to find Minimum Spanning Trees (MST). The algorithm starts by picking a given node in the graph, with which it begins the MST. It then finds the shortest edge from the MST to a node that is not in the MST, and adds that node.
You can read more on Randomized Prim's algoirthm at: https://en.wikipedia.org/wiki/Maze_generation_algorithm

![gif](/docs/assets/gif1.gif)

# Implementation
In my implementation the black tiles repersent walls and the white tiles are the paths. The red tiles are the frontier cells and theses are the neighbouring cells to the paths, the frontier cells are the cells that are randomly picked to become passages and are connected with their a neighbouring cell.

# Development
Coded in c++ with SDL2 for rendering.