filmov
tv
Python Maze Generating Algorithm - PathGen v2.4 with short move range

Показать описание
A Python script / algorithm that generates a complex maze with only one solution randomly. (PathGen v2.4 with trackback / re-spawn by Jere)
In this version, the move range for each step has been set to a short random range, so that shorter straight paths are formed.
Random range = (1, 2) - means for each random move the direction loop runs either once or twice.
In this version, the move range for each step has been set to a short random range, so that shorter straight paths are formed.
Random range = (1, 2) - means for each random move the direction loop runs either once or twice.