mwg API
    Preparing search index...

    Interface ChessEngineAsyncOptions

    interface ChessEngineAsyncOptions {
        depth?: number;
        jobs?: number;
        maxNodes?: number;
        signal?: AbortSignal;
    }
    Index
    depth?: number

    plies to search; three stays the default - a worker is an optimization, not a license to raise depth

    jobs?: number

    root moves scored at once (default: hardware threads capped at 8, else 4)

    maxNodes?: number

    hard cap on visited positions, applied to each root move's search: every subtree is exact within the same budget the synchronous search gets as a whole, which is what keeps the chosen move identical to search inside the budget

    signal?: AbortSignal

    aborting rejects the search and terminates its workers through threads.spawn