blob: 37770809446e25d5b8ad9afac422c146dcc1cab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { createBoard } from "./engine/visual/createBoard.js"
export let board = {
element: document.getElementById("board"),
size: 9,
stones: {},
links: {},
}
export function prepareBoard() {
board.stones = [...Array(board.size)].map(_ => Array(board.size))
createBoard(board.size)
}
|