WIP
This commit is contained in:
@@ -43,9 +43,11 @@ class Board {
|
|||||||
private background: HTMLCanvasElement | null = null;
|
private background: HTMLCanvasElement | null = null;
|
||||||
private extraInfo: boolean = true;
|
private extraInfo: boolean = true;
|
||||||
private piecesStyle: PiecesStyle = "tatiana";
|
private piecesStyle: PiecesStyle = "tatiana";
|
||||||
|
// @ts-ignore
|
||||||
private showMaterial: boolean = true;
|
private showMaterial: boolean = true;
|
||||||
private showMoveIndicator: boolean = true;
|
private showMoveIndicator: boolean = true;
|
||||||
private showCoords: boolean = true;
|
private showCoords: boolean = true;
|
||||||
|
// @ts-ignore
|
||||||
private showChecks: boolean = true;
|
private showChecks: boolean = true;
|
||||||
private currentScreen: "title" | "move" = "move";
|
private currentScreen: "title" | "move" = "move";
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const main = async () => {
|
|||||||
const player = new Player(board, gameConfig);
|
const player = new Player(board, gameConfig);
|
||||||
const game = new Game().loadPGN(pgn);
|
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
|
// @ts-ignore
|
||||||
window.game = game;
|
window.game = game;
|
||||||
|
|||||||
Reference in New Issue
Block a user