yawning_titan.game_modes.components.game_rules#

Classes

BlueLossConditionGroup

The state of the network that must be reached for the red agent to win the game.

GameRules

The overall rules of the game mode.

NetworkCompatibilityGroup

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.

__init__(doc=None, node_count=None, entry_node_count=None, high_value_node_count=None)[source]#

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.

__init__(doc=None, all_nodes_lost=False, high_value_node_lost=False, target_node_lost=False, n_percent_nodes_lost=None)[source]#

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.

__init__(grace_period_length=0, max_steps=0, blue_loss_condition=None, network_compatibility=None)[source]#

The ConfigGroup constructor.

Parameters:

doc – The groups doc.

validate()[source]#

Extend the parent validation with additional rules specific to this :class: ~yawning_titan.config.core.ConfigGroup.