import { GoBoard } from "./components/Board"; import { CoreApi, initCore } from "./coreApi"; const main = async () => { let coreApi = await initCore(); let response = await coreApi.playingField(); console.log("playing field response: ", response); const root = document.getElementById("root"); if (!root) { alert("could not retrieve the app root container"); return; } const board = new GoBoard(response.board); root.appendChild(board.canvas); console.log("constructed board: ", board); board.renderBoard(); }; main();