mwg API
    Preparing search index...

    Interface MoveRouteOptions

    interface MoveRouteOptions {
        canMove?: (dx: number, dy: number) => boolean;
        random?: () => number;
    }
    Index
    canMove?: (dx: number, dy: number) => boolean

    asked before every directional/jump step, the same contract GridMover itself expects of its caller

    random?: () => number

    source of randomness for random steps; defaults to Math.random