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