Table of Contents
Fast Random Pathfinder is a pathfinding algorithm that, as the name implies, traverses randomly until reaching it's goal. Although random, it is comparibly faster than alternative random pathfinding solutions. Fast Random Pathfinder also iteratively optimizes itself, increasing the odds of finding an optimal path.
It should be said that there is little use for a pathfinder that relies solely on random chance when traversing. This project exists solely for curiosity's sake, and should not even be considered for actual use cases when alternatives like A* exist.
Read an in-depth analysis of this project here.
Fast Random Pathfinder relies on <windows.h>
for visualization, making compilation difficult on Linux/macOS systems without the use of a virtual environment.
- Clone/download the repo
git clone https://github.com/nTh0rn/fast-random-pathfinder.git
- Modify any of the following values within
fast-random-pathfinder.cpp
1.1mapW
andmapH
to change map grid size
1.2depth
to either1
or2
to set the depth of the backtracking maze generation algorithm. - Build to
.exe
using CMakecmake build .
Distributed under the MIT License. See LICENSE.txt
for more information.
Nikolas Thornton - nthorn.com - contact@nthorn.com