yawning_titan.game_modes.components.game_rules#
Classes
The state of the network that must be reached for the red agent to win the game. |
|
The overall rules of the game mode. |
|
A set of optional restrictions that collectively constrain the types of network a game mode can be used upon. |
- class yawning_titan.game_modes.components.game_rules.NetworkCompatibilityGroup(doc=None, node_count=None, entry_node_count=None, high_value_node_count=None)[source]#
A set of optional restrictions that collectively constrain the types of network a game mode can be used upon.
The ConfigGroup constructor.
- Parameters:
doc – The groups doc.
- class yawning_titan.game_modes.components.game_rules.BlueLossConditionGroup(doc=None, all_nodes_lost=False, high_value_node_lost=False, target_node_lost=False, n_percent_nodes_lost=None)[source]#
The state of the network that must be reached for the red agent to win the game.
The ConfigGroup constructor.
- Parameters:
doc – The groups doc.
- class yawning_titan.game_modes.components.game_rules.GameRules(grace_period_length=0, max_steps=0, blue_loss_condition=None, network_compatibility=None)[source]#
The overall rules of the game mode.
The ConfigGroup constructor.
- Parameters:
doc – The groups doc.