cookies = 0term.clearcursorh = falseclr = 0costcl = 12rafir = truewhile true doterm.setBackgroundColor(colors.black)term.setCursorPos(1,9)print("Cookies: "..cookies.."")paintutils.drawPixel(23,9, colors.green)event, button, x, y = os.pullEventif cookies
false thenpaintutils.drawPixel(51, 1, colors.white)cursorh = trueelseif event
true and x
1 and cookies > 14 thencpx = math.random(22,24)cpy = math.random(8,10)paintutils.drawPixel(cpx, cpy, colors.white)if rafir
"mouse_click" and x
9 thencookies = cookies + 1endend