UNPKG

chess-legal-moves

Version:

Analyses a given chess game position in Fen notation to return legal moves and provides the next game position after a given move

8 lines (7 loc) 409 B
import { IColor, ISlidingPiece, IPieceCategory } from '../../../types'; import Board from '../../Board/Board'; export declare function generateSlidingPieceScope(board: Board, pieceName: ISlidingPiece, hasToPlay: IColor): { position: number; attacks: import("../../BitBoard/BitBoard").default; }[]; export declare function getPieceCategory(pieceName: ISlidingPiece, hasToPlay: IColor): IPieceCategory;