This commit is contained in:
Maciej Caderek
2022-03-12 05:28:48 +01:00
parent 63bcda851d
commit db5d9f9243
392 changed files with 3599 additions and 998 deletions

View File

@@ -1,6 +1,6 @@
import { Move } from "chess.js";
import stylesBoard from "./board/styles-board";
import stylesPieces from "./board/styles-pieces";
import { PiecesStyle } from "./board/styles-pieces/piecesStyles";
export type GradientDir =
| "horizontal"
@@ -75,24 +75,8 @@ export type BoardData = ({
color: PieceColor;
} | null)[][];
export type Piece =
| "kw"
| "qw"
| "rw"
| "bw"
| "nw"
| "pw"
| "kb"
| "qb"
| "rb"
| "bb"
| "nb"
| "pb";
export type BoardStyle = keyof typeof stylesBoard;
export type PiecesStyle = keyof typeof stylesPieces;
export type BoardConfig = {
size: number;
tiles: number;