Skip to content

Commit 3fce582

Browse files
authored
space out maze intro
1 parent c020640 commit 3fce582

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

posts/generating-mazes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ tags: ["javascript"]
55
description: "Visualizations and techniques for different maze generation algorithms."
66
---
77

8-
I've been reading about mazes and how to generate them. The type of mazes I'll be talking about are 2D grids of connected cells. They're _perfect mazes_ (i.e. there is exactly one unique path between any two cells aka a uniform spanning tree). I'll refer to the connections between cells as _edges_. An edge can be created between a cell and any of its neighbors (up, right, left, down). When two cells don't share an edge, there is a wall between them. While generating a maze, if a cell isn't reachable, I'll render it dark.
8+
I've been reading about mazes and how to generate them. The type of mazes I'll be talking about are 2D grids of connected cells. They're _perfect mazes_ (i.e. there is exactly one unique path between any two cells aka a uniform spanning tree).
9+
10+
I'll refer to the connections between cells as _edges_. An edge can be created between a cell and any of its neighbors (up, right, left, down). When two cells don't share an edge, there is a wall between them. While generating a maze, if a cell isn't reachable, I'll render it dark.
911

1012
<div className="mazes" id="introMaze"></div>
1113

0 commit comments

Comments
 (0)