clik-engine API
    Preparing search index...

    Class ScriptedStrategy

    Replays a deterministic { frame, action, value } timeline against a HeadlessRunner. Perfect for reproducible regression tests where the inputs stay identical while the RNG seed varies — drop a scripted run into a HarnessRunner.run({ seeds: { count: 100 } }) sweep to assert that no seed breaks the scripted path.

    Steps may be supplied unsorted; the strategy sorts and consumes them in frame order.

    new ScriptedStrategy([
    { frame: 30, action: 'jump', value: true },
    { frame: 32, action: 'jump', value: false },
    { frame: 60, action: 'attack', value: true },
    ]);

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods