Transitions
deterministic_transition(state, action, actions_set)
Deterministic transition function. It selects the action from the set of actions and applies it to the state.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
State
|
The current state of the game. |
required |
action |
Array
|
The action to be taken. |
required |
actions_set |
Tuple[Callable[[State], State]
|
A set of actions that can be taken. |
required |
Returns:
Name | Type | Description |
---|---|---|
State |
State
|
The new state of the game. |
stochastic_transition(state, action, actions_set)
Stochastic transition function. It selects the action from the set of actions and applies it to the state, and updates entities that have stochastic transitions, such as balls.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
State
|
The current state of the game. |
required |
action |
Array
|
The action to be taken. |
required |
actions_set |
Tuple[Callable[[State], State]
|
A set of actions that can be taken. |
required |
Returns:
Name | Type | Description |
---|---|---|
State |
State
|
The new state of the game. |