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) }