ethicalgardeners.action.create_action_enum

ethicalgardeners.action.create_action_enum(num_flower_type=1)[source]

Dynamically create an enumeration of actions for agents in the grid world based on the number of flower types.

Parameters:

num_flower_type (int) – The number of flower types available for planting. Defaults to 1.

Returns:

An enumeration of actions that agents can perform.

Return type:

Enum