Play game
Sorting Sensei's itch.io pageHow many characters did you use?
559
Include your code here, if you'd like to show it off!
function R() p=5 a={} h="_" for i=0,62 do a[-i]="" a[i]=i%9 r=math.random(i+1)-1 a[i],a[r]=a[r],a[i] end end R() function TIC() if btnp(2) then p=(p-2)%9+1 end if btnp(3) then p=p%9+1 end if btnp(4) then j=-10 while j<62 do if a[p+j]~="" and h=="_" then h,a[p+j]=a[p+j],"" j=62 elseif a[p+43-j]=="" and h~="_" then h,a[p+43-j]="_",h j=62 end j=j+9 end if w>0 then R() end end cls(8) print(h,8*p+72,40) w=1 for i=-9,62 do print(a[i],80+8*(i%9),56+8*(i//9)) if i>-1 and a[i]~=i%9 then w=0 end end if w>0 then print("You win! Press Z to reset.",48,24) end end--Q
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet