Signed-off-by: Alice <Svfoxel@yandex.ru>

version 2
This commit is contained in:
2026-05-17 18:21:48 +03:00
parent 59ff9624d1
commit b1c7c526c8
15 changed files with 29 additions and 0 deletions
@@ -0,0 +1,15 @@
const grid = [];
const cells = 64;
let counter = 0;
let row;
for (let x = 0; x < cells + 1; x++) {
if (counter % 8 == 0) {
if (row != undefined) {
grid.push(row);
} row = [];
}
counter++;
let temp = counter;
row.push(temp);
}
console.table(grid);