mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-24 09:33:26 +01:00
update comment
This commit is contained in:
parent
9f55817a59
commit
c3e46716e3
@ -36,7 +36,7 @@ function set_visited(x, y, maze) = [
|
||||
[x, y, get_wall_type(b), true] : b
|
||||
];
|
||||
|
||||
// 0(right)、1(upper)、2(left)、3(down)
|
||||
// 0(right), 1(upper), 2(left), 3(down)
|
||||
function rand_dirs() =
|
||||
[
|
||||
[0, 1, 2, 3],
|
||||
@ -132,7 +132,7 @@ function go_down_from(x, y, maze, rows) = [
|
||||
) : b
|
||||
];
|
||||
|
||||
// 0(right)、1(upper)、2(left)、3(down)
|
||||
// 0(right), 1(upper), 2(left), 3(down)
|
||||
function try_block(dir, x, y, maze, rows, columns) =
|
||||
dir == 0 ? go_right_from(x, y, maze) :
|
||||
dir == 1 ? go_up_from(x, y, maze) :
|
||||
@ -184,4 +184,4 @@ function try_routes_from(x, y, dir, maze, rows, columns, x_circular, y_circular)
|
||||
x_circular, y_circular
|
||||
)
|
||||
// road closed so return maze directly
|
||||
: maze;
|
||||
: maze;
|
Loading…
x
Reference in New Issue
Block a user