mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 12:10:47 +02:00
replace parentheses
This commit is contained in:
@@ -44,7 +44,7 @@ function set_visited(x, y, maze) = [
|
|||||||
[x, y, get_wall_type(b), true] : b
|
[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() =
|
function rand_dirs() =
|
||||||
[
|
[
|
||||||
[0, 1, 2, 3],
|
[0, 1, 2, 3],
|
||||||
@@ -140,7 +140,7 @@ function go_down_from(x, y, maze, rows) = [
|
|||||||
) : b
|
) : 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) =
|
function try_block(dir, x, y, maze, rows, columns) =
|
||||||
dir == 0 ? go_right_from(x, y, maze) : (
|
dir == 0 ? go_right_from(x, y, maze) : (
|
||||||
dir == 1 ? go_up_from(x, y, maze) : (
|
dir == 1 ? go_up_from(x, y, maze) : (
|
||||||
|
Reference in New Issue
Block a user