mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-15 11:14:17 +02:00
format
This commit is contained in:
@@ -147,13 +147,10 @@ function go_down_from(x, y, maze, rows) = [
|
|||||||
|
|
||||||
// 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) :
|
||||||
dir == 2 ? go_left_from(x, y, maze, columns) :
|
dir == 2 ? go_left_from(x, y, maze, columns) :
|
||||||
go_down_from(x, y, maze, rows) // dir is 3
|
/*dir 3*/ go_down_from(x, y, maze, rows);
|
||||||
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
// find out visitable dirs from (x, y)
|
// find out visitable dirs from (x, y)
|
||||||
|
Reference in New Issue
Block a user