Published
Edited
May 13, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sudoku = {
let current_block = 1
return Array(81).fill(0).map((_, idx) => {
let [cell, column, row, block] = [idx, idx, idx, idx+1]
row = Math.ceil((row+1)/9)
column = (idx) % 9 + 1
block = (block % 3 || block == 1) ? current_block : current_block++
if(!row % 3) {
}
return {
cell,
column,
row,
block
}
})

}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more