This commit is contained in:
2026-06-24 16:28:42 +02:00
commit 1922f2db62
19 changed files with 571 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
export const flattenBlocks = (blocks: number[][][]): number[] => {
const flatArray: number[] = []
for (const block of blocks) {
for (let col = 0; col < 4; col++) {
for (let row = 0; row < 4; row++) {
flatArray.push(block[row][col])
}
}
}
return flatArray
}