Skip to content

Instantly share code, notes, and snippets.

View te11ur's full-sized avatar
🇺🇿
Focusing

akalandar te11ur

🇺🇿
Focusing
View GitHub Profile
@te11ur
te11ur / growing-tree.rb
Created April 24, 2018 05:59 — forked from jamis/growing-tree.rb
An implementation of the "Growing Tree" algorithm for maze generation.
# --------------------------------------------------------------------
# An implementation of the "Growing Tree" algorithm. This one is
# notable for it's ability to become nearly identical to Prim's
# algorithm, or the Recursive Backtracking algorithm, depending on
# how the cells are removed from the list that aggregates as the
# algorithm runs.
#
# This script allows you to play with those settings by specifying
# the mode after the width and height parameters, as "random" (pull
# the cell from list at random), "newest" (pull the newest cell),