This commit is contained in:
Maciej Caderek
2022-02-11 00:45:22 +01:00
parent e93ac083fa
commit 8e9cc77ce6
11 changed files with 249 additions and 260 deletions

View File

@@ -62,8 +62,6 @@ const main = async () => {
const player = new Player(board, gameConfig);
const game = new Game().loadPGN(pgn);
console.log(game.getMoves());
setState({ moves: game.getMoves() });
const handlers = {
@@ -117,7 +115,6 @@ const main = async () => {
);
const $board = document.querySelector<HTMLImageElement>("#board");
console.log({ $board });
$board?.appendChild(board.canvas);
// const moves = new Moves($moves as HTMLElement, player).load(game.getMoves());