clik-engine API
    Preparing search index...

    Interface ScenarioStrategy

    Decides which actions to press each frame under the harness. Implemented by ScriptedStrategy, RandomFuzzStrategy, PolicyStrategy, or your own class.

    beforeFrame runs before the game step — write to ctx.scripted to apply inputs for this frame. Strategies may be async (the runner awaits).

    interface ScenarioStrategy {
        beforeFrame(ctx: ScenarioContext): void | Promise<void>;
        done?(ctx: ScenarioContext): void;
        init?(ctx: ScenarioContext): void | Promise<void>;
    }

    Implemented by

    Index

    Methods