1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 12:10:47 +02:00

replace parentheses

This commit is contained in:
Justin Lin
2019-09-07 16:43:51 +08:00
parent 0a0f18b323
commit b022b859cc

View File

@@ -44,7 +44,7 @@ function set_visited(x, y, maze) = [
[x, y, get_wall_type(b), true] : b
];
// 0right、1upper、2left、3down
// 0(right)、1(upper)、2(left)、3(down)
function rand_dirs() =
[
[0, 1, 2, 3],
@@ -140,7 +140,7 @@ function go_down_from(x, y, maze, rows) = [
) : b
];
// 0right、1upper、2left、3down
// 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) : (