From 2859a2348df7d130b724e95910328b00eba261ab Mon Sep 17 00:00:00 2001 From: Maciej Caderek Date: Tue, 1 Feb 2022 00:10:10 +0100 Subject: [PATCH] WIP --- src/board/Board.ts | 2 ++ src/main.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/board/Board.ts b/src/board/Board.ts index 6190fc1..2201d02 100644 --- a/src/board/Board.ts +++ b/src/board/Board.ts @@ -43,9 +43,11 @@ class Board { private background: HTMLCanvasElement | null = null; private extraInfo: boolean = true; private piecesStyle: PiecesStyle = "tatiana"; + // @ts-ignore private showMaterial: boolean = true; private showMoveIndicator: boolean = true; private showCoords: boolean = true; + // @ts-ignore private showChecks: boolean = true; private currentScreen: "title" | "move" = "move"; diff --git a/src/main.ts b/src/main.ts index b629df6..c214cda 100644 --- a/src/main.ts +++ b/src/main.ts @@ -63,7 +63,7 @@ const main = async () => { const player = new Player(board, gameConfig); const game = new Game().loadPGN(pgn); - const moves = new Moves($moves as HTMLElement, player).load(game.getMoves()); + new Moves($moves as HTMLElement, player).load(game.getMoves()); // @ts-ignore window.game = game;