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 east attacks
* @param attacksList an IRayAttack array of directional attacks
* @returns attacksList populated with east attacks
*/
export declare function generateEastAttacks(attacksList: IRayAttack[]): IRayAttack[];