Maze solving: Difference between revisions
m
→{{header|EasyLang}}
Line 1,100:
[https://easylang.online/apps/_r_maze.html Run it]
<lang>
n = 2 * size + 1
endpos = n * n - n - 3
startpos = 2 * n + 2
f
#
func draw_square pos col . .
x = pos mod n
y = pos
color col
move x * f
rect f
.
func mark pos . .
x = pos mod n
y = pos
color 900
move x * f
circle f
.
len m[] n * n
|