blob: 06fcf5e57fe3e10f22e3ae288539f567087b2a90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { board } from "../../board.js"
export function createBoard(size) {
let table = document.createElement("table")
for (let r = 1; r < size; r++) {
let tr = document.createElement("tr")
for (let c = 1; c < size; c++) {
let td = document.createElement("td")
tr.appendChild(td)
}
table.appendChild(tr)
}
board.element.appendChild(table)
}
|