Maze solving: Difference between revisions

m
Line 1,100:
[https://easylang.online/apps/_r_maze.html Run it]
 
<lang>intvarssize = 20
size = 20
n = 2 * size + 1
endpos = n * n - n - 3
startpos = 2 * n + 2
f# = 100 / n
#
func draw_square pos col . .
x = pos mod n
y = pos /div n
color col
move x * f# y * f#
rect f# * 1.05 f# * 1.05
.
func mark pos . .
x = pos mod n
y = pos /div n
color 900
move x * f# + f# / 2 y * f# + f# / 2
circle f# / 4
.
len m[] n * n
1,983

edits