xxxxxxxxxx
33
let sdk=[];
let sizeCanvas = 400;
function setup() {
createCanvas(sizeCanvas, sizeCanvas);
//generate sudoku
for(let x = 0 ; x < 9; x++) {
sdk.push([]);
for (let y = 0; y < 9; y++) {
sdk[x][y] = y;
}
}
console.log(sdk);
}
function draw() {
background(220);
let space = sizeCanvas/9;
for(let x = 1; x<9; x++){
line(x*space, 0, x*space, height);
}
for(let y = 1; y<9; y++){
line(0, y*space, width, y*space);
}
}