🎲 Building a Maze (Flow processing)

by lighfu

Version 1 (August 8, 2021)

Download (192 downloads)

🧩Algorithm: Wall extend method
This flow just creates a maze.

✅ No external tools are required, just Automate is all you need.
and.. Premium user Only. sorry😞

🗒️ note
- Be sure to set the setting value to an odd number.
- Please disable logging.
- Please reset "stack size" in advance. (May be faster.)
- The notification will be heavy.

🔌 output
If you want to use the maze for something, use the # 26 block "data" variable.

It contains raw map data.
Type is Array.

Use the following formula for the (x, y) reference.
= data[x + y * width]

(width is map width size)

data value:
0 is Path.
1 is Wall.




0:up 1:right 2:down 3:left
Map Init
Map Set
StartCells = R[]{x, y}
Map Generate
R
R.Selector = 0 : Exit (data Result)
R.Selector > 0 :
Map wall Plot
Map wall extend Plot , Dir Calculate
can't : CurrentWallCells - 1(Back act)
can :
Plot extend,
Next Path is
Path : go [ R.Selector > 0 ]
Wall : go [ Map Generate ]

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.