IMDZUX5WFBYCKZPYGVTSJPONI3ORUDNALX5A2BMUFK3JOZ6DHJWQC
X6AJODURS3K7O6ZNPOJLXFKI73E7OBRJRMBL66UHBDKFZXK4F6RAC
4IBBQBYGBZDCXQO5C7H6UTWT67YJUJ7R6FH6UNHX4QGXOO47UUBQC
GVX7YSQYURPWFSUWVUAORZJTQBJURWWNBNUGEZYFAUMX3X5LSACQC
draw_win_state()
endfunction draw_win_state() if not any_state_in_level(RGB_CRATE) then color(0,1,0) g.print('success!', left+2*side, top) end
end
function draw_win_state()
if not any_state_in_level(RGB_CRATE) then
color(0,1,0)
g.print('success!', left+2*side, top)
function any_state_in_level(needle) for r,row in ipairs(level_state) do for c,cell in ipairs(row) do if cell == needle then return true end end end end
function any_state_in_level(needle)
for r,row in ipairs(level_state) do
for c,cell in ipairs(row) do
if cell == needle then
return true
end end end end