You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.5 KiB
Plaintext
99 lines
3.5 KiB
Plaintext
|
|
_ _ _ _ __ __ _ _ _ ____ U ___ u __ __ ____ _ _ _____ _ _ ____
|
|
|'| |'|U |"|u| |U|' \/ '|uU /"\ u | \ |"| U /"___| \/"_ \/U|' \/ '|uU| _"\ uU |"|u| ||_ " _| ___ | \ |"| U /"___|u
|
|
/| |_| |\\| |\| |\| |\/| |/ \/ _ \/ <| \| |> \| | u | | | |\| |\/| |/\| |_) |/ \| |\| | | | |_"_| <| \| |>\| | _ /
|
|
U| _ |u | |_| | | | | | / ___ \ U| |\ |u | |/__.-,_| |_| | | | | | | __/ | |_| | /| |\ | | U| |\ |u | |_| |
|
|
|_| |_| <<\___/ |_| |_| /_/ \_\ |_| \_| \____|\_)-\___/ |_| |_| |_| <<\___/ u |_|U U/| |\u |_| \_| \____|
|
|
// \\(__) )( <<,-,,-. \\ >> || \\,-. _// \\ \\ <<,-,,-. ||>>_ (__) )( _// \\_.-,_|___|_,-.|| \\,-._)(|_
|
|
(_") ("_) (__) (./ \.) (__) (__)(_") (_/ (__)(__) (__) (./ \.) (__)__) (__)(__) (__)\_)-' '-(_/ (_") (_/(__)__)
|
|
|
|
|
|
|
|
|
|
. . . . . . . . . . . . . . . ╓ WALL LIST ╖
|
|
╟ ╢
|
|
. . . . . . . . . . . . . . . ╟ ╢
|
|
╟ ╢
|
|
. . . . . . . . . . . . . . . ╟ ╢
|
|
╟ ╢
|
|
. . . . . . . . . . . . . . . ╟ ╢
|
|
╟ ╢
|
|
. . . . . . . . . . . . . . . ╟ ╢
|
|
╟ ╢
|
|
. . . . . . . . . . . . . . . ╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╟ ╢
|
|
╔═══════════════════════════╗ ╟ ╢
|
|
║Randomized Prim's Algorithm║ ╟ ╢
|
|
╚═══════════════════════════╝ ╟ ╢
|
|
╟ ╢
|
|
- Start with a grid full of walls. ╟ ╢
|
|
╟ ╢
|
|
- Pick a cell, mark it as part of the maze. ╟ ╢
|
|
Add the walls of the cell to the wall list. ╟ ╢
|
|
╟ ╢
|
|
- While there are walls in the list: ╙ ╜
|
|
|
|
- Pick a random wall from the list.
|
|
If only one of the cells that the wall
|
|
divides is visited, then:
|
|
|
|
- Make the wall a passage and mark
|
|
the unvisited cell as part of
|
|
the maze.
|
|
|
|
- Add the neighboring walls of the
|
|
cell to the wall list.
|
|
|
|
- Remove the wall from the list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,. ( . ) . "
|
|
(" ) )' ,' ) . (` '`
|
|
.; ) ' (( (" ) ;(, (( ( ;) " )"
|
|
_"., ,._'_.,)_(..,( . )_ _' )_') (. _..( '..jb
|
|
|
|
|
|
ASCII font "Dancing Font" http://patorjk.com/software/taag/
|
|
|
|
Randomized Prim's Algorithm from
|
|
https://en.wikipedia.org/wiki/Maze_generation_algorithm
|
|
|
|
Based on Orestis Zekai's maze generator
|
|
https://medium.com/swlh/fun-with-python-1-maze-generator-931639b4fb7e
|
|
|
|
ASCII fire by jb https://hopemoji.com/text-art-ascii/fire/
|
|
|
|
Made in the context of Special Issue 17: Productive Play
|
|
XPUB™
|
|
|
|
|
|
|
|
|
|
|