mwg API
Reference
Overview
Examples
Getting started
Design
FAQ
Preparing search index...
Simulation
SimulationRule
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
(
state
:
State
,
command
:
Command
,
random
:
Random
)
:
SimulationStep
<
State
,
Event
>
Parameters
state
:
State
command
:
Command
random
:
Random
Returns
SimulationStep
<
State
,
Event
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Reference
Overview
Examples
Getting started
Design
FAQ
mwg API
Loading...
The game owns state, rules, event types, and the random-source interface.