-- Serve burger function serveBurger() if pattyState == "cooked" and burgerParts.bun and burgerParts.lettuce and burgerParts.cheese then print("Perfect burger! +10 points") -- Reset burgerParts = bun=false, patty=false, lettuce=false, cheese=false pattyState = "raw" else print("Missing ingredients or patty not cooked properly") end end

Function add_topping(topping): if patty_state == "cooked" and not burger_parts[topping]: burger_parts[topping] = true