mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 22:37:35 +02:00
change seed
This commit is contained in:
@@ -142,7 +142,7 @@ function visitable_dirs(r_dirs, x, y, cells, rows, columns, x_wrapping, y_wrappi
|
|||||||
// go maze from (x, y)
|
// go maze from (x, y)
|
||||||
function go_maze(x, y, cells, rows, columns, x_wrapping = false, y_wrapping = false, seed) =
|
function go_maze(x, y, cells, rows, columns, x_wrapping = false, y_wrapping = false, seed) =
|
||||||
let(
|
let(
|
||||||
r_dirs = rand_dirs(x * rows + y, seed),
|
r_dirs = rand_dirs(x + y * columns, seed),
|
||||||
v_dirs = visitable_dirs(r_dirs, x, y, cells, rows, columns, x_wrapping, y_wrapping),
|
v_dirs = visitable_dirs(r_dirs, x, y, cells, rows, columns, x_wrapping, y_wrapping),
|
||||||
nx_cells0 = set_visited(x, y, cells),
|
nx_cells0 = set_visited(x, y, cells),
|
||||||
leng_v_dirs = len(v_dirs)
|
leng_v_dirs = len(v_dirs)
|
||||||
|
Reference in New Issue
Block a user