mwg API
    Preparing search index...

    Interface LuaAIOptions

    maxSteps (alias of instructionLimit) caps VM instructions per decision, reported as budget-exceeded. seed is the default for mwg_seed. host replaces the Pyroeis VM, e.g. with a test fake.

    interface LuaAIOptions {
        host?: ScriptHost;
        instructionLimit?: number;
        maxMilliseconds?: number;
        maxSteps?: number;
        memoryLimit?: number;
        onDecision?: (decision: AI.AIDecision) => void;
        seed?: number;
    }

    Hierarchy (View Summary)

    Index
    host?: ScriptHost
    instructionLimit?: number
    maxMilliseconds?: number
    maxSteps?: number
    memoryLimit?: number

    bytes of string and buffer data one call may allocate; defaults to 32 MB

    onDecision?: (decision: AI.AIDecision) => void
    seed?: number