Reads a chess.ts position onto bitboards: the bridge the differential tests cross in both directions, and the way a FEN reaches the fast board.
chess.ts
import { bitboardFromChess, bitboardMoves, startingChess } from '@datamoc/mwg/board';const moves = bitboardMoves(bitboardFromChess(startingChess()));console.log(moves.length); // 20 - the opening position's own count Copy
import { bitboardFromChess, bitboardMoves, startingChess } from '@datamoc/mwg/board';const moves = bitboardMoves(bitboardFromChess(startingChess()));console.log(moves.length); // 20 - the opening position's own count
Reads a
chess.tsposition onto bitboards: the bridge the differential tests cross in both directions, and the way a FEN reaches the fast board.