Jump to content

15 puzzle game: Difference between revisions

Line 5,197:
[https://easylang.online/apps/15-puzzle.html Run it]
 
<syntaxhighlight lang="text">sys topleft
sys topleft
background 432
textsize 13
len f[] 16
funcproc draw . .
clear
for i = 1 to 16
Line 5,221 ⟶ 5,222:
.
global done .
funcproc init . .
done = 0
for i = 1 to 16
Line 5,246 ⟶ 5,247:
call draw
.
funcproc move_tile . .
c = mouse_x div 25
r = mouse_y div 25
Line 5,279 ⟶ 5,280:
.
.
call init</syntaxhighlight>
</syntaxhighlight>
 
=={{header|F_Sharp|F#}}==
2,056

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.