mwg API
    Preparing search index...

    Type Alias SimulationRule<State, Command, Event, Random>

    SimulationRule: (
        state: State,
        command: Command,
        random: Random,
    ) => SimulationStep<State, Event>

    The game owns state, rules, event types, and the random-source interface.

    Type Parameters

    • State
    • Command
    • Event
    • Random

    Type Declaration