Skip to contents

Overview

mazegenerator mazegenerator-package
Generate, Visualize, and Solve Random Mazes

Maze generation and display

generate_maze() print(<maze>)
Generate a random maze
plot_maze() plot(<maze>)
Plot a maze
animate_maze()
Animate maze generation

Post-processing

braid()
Braid a maze by removing dead ends
sparsify()
Sparsify a maze by carving out dead ends
set_endpoints()
Choose new start/end cells for a maze

Pathfinding

solve_maze()
Solve a maze or walkable matrix with graph search
animate_solution()
Animate a maze search

Analysis

maze_stats() print(<maze_stats>) as.data.frame(<maze_stats>)
Compute comparative statistics for a maze