cube
void cube () {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if ( valCube[i][j]!=0) {
//ecrit nombre de cube en x et y
println(i, j);
//couleur du cube
noStroke ();
fill(255, 204, 51);
//position et taille du cube
rect (15+i*100, 15+j*100, 90, 90);
//affichage chiffre dans le cube
fill (10);
textSize (50);
//(multiplication, position x, position y)
text (valCube[i][j], 15+i*100+25, 15+j*100+65);
}
}
}
}