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) 328 B
import { IRayAttack } from '../../../../types'; /** * Populates an array of 64 IRayAttacks objects with north attacks * @param attacksList an IRayAttack array of directional attacks * @returns attacksList populated with north attacks */ export declare function generateNorthAttacks(attacksList: IRayAttack[]): IRayAttack[];