mwg API
    Preparing search index...

    Variable chessGameConst

    The chess rules adapter consumed by the shared ai.alphaBetaSearch primitive.

    import { chessGame, startingChess } from '@datamoc/mw_games/board';
    import { alphaBetaSearch } from '@datamoc/mw_games/ai';

    const result = alphaBetaSearch(chessGame, startingChess(), { depth: 2 });
    console.log(result.move !== null); // true