Play game
Slots on the Low's itch.io pageHow many characters did you use?
555
Include your code here, if you'd like to show it off!
g=0 t=10 p=0 c={11,10,12,8,9} w={0,5,20,40,65} s={4,29,54,79,104} y=63 cls() function _update() if btnp(4) and g==0 and t>0 then g=1 t=t-1 cls() elseif btnp(4) and g==1 then g=0 x() print(p) if t==0 then print("done!") end end if g==1 then for k,v in pairs(s) do rectfill(v,y,v+20,y+20,c[flr(rnd(5))+1]) end end end function x() r={} h=pget(s[1],y) for i=1,5 do m=pget(s[i],y) if r[m]==nil then r[m]=1 else r[m]=r[m]+1 end end for k,v in pairs(r) do if r[h] < v then h=k end end p=p+w[r[h]] end
Leave a comment
Log in with itch.io to leave a comment.