A2XVLUAMR66SVIIYLEV6KQOCFW2BS5Y3C6H5GOUCXLABPYEYOE4AC on.mouse_press = function(x,y, mouse_button)if x >= X and x < X+Square_side and y >= Y and y < Y+Square_side thenCursor = {1, 1}elseif x >= X+Square_side and x < X+Square_side*2 and y >= Y and y < Y+Square_side thenCursor = {2, 1}elseif x >= X and x < X+Square_side and y >= Y+Square_side and y < Y+Square_side*2 thenCursor = {1, 2}elseif x >= X+Square_side and x < X+Square_side*2 and y >= Y+Square_side and y < Y+Square_side*2 thenCursor = {2, 2}elseCursor = {0, 0} -- invalidendend
Y = 200
X = 250
Cursor = {0, 0} -- x, y coordinate
elseif chord:match('%d') then-- cursor visiblelocal x,y = Cursor[1], Cursor[2]if x > 0 and y > 0 then-- it's not in the provided squareif x ~= Problem.x or y ~= Problem.y thenlocal c = Problem.data[y][x]local d = (string.byte(chord) - 48)if c == '' thenProblem.data[y][x] = delseif c < 2 then -- not overfullProblem.data[y][x] = Problem.data[y][x]*10 + dendendend