splendor.agents.generic package
Submodules
splendor.agents.generic.first_move module
Implementation of an agent that selects the first legal action.
- class splendor.agents.generic.first_move.FirstActionAgent(_id)[source]
 Bases:
AgentAn agent that selects the first legal action.
- SelectAction(actions: list[CollectAction | ReserveAction | BuyAction], game_state: SplendorState, game_rule: SplendorGameRule) CollectAction | ReserveAction | BuyAction[source]
 
- splendor.agents.generic.first_move.myAgent
 alias of
FirstActionAgent
splendor.agents.generic.random module
Implementation of an agent that selects the first legal action.
- class splendor.agents.generic.random.RandomAgent(_id)[source]
 Bases:
AgentAn agent that selects a random legal action.
- SelectAction(actions: list[CollectAction | ReserveAction | BuyAction], game_state: SplendorState, game_rule: SplendorGameRule) CollectAction | ReserveAction | BuyAction[source]
 
- splendor.agents.generic.random.myAgent
 alias of
RandomAgent
splendor.agents.generic.timeout module
Implementation of an agent that selects the first legal action after 2 seconds sleep.
- class splendor.agents.generic.timeout.TimeoutAgent(_id)[source]
 Bases:
AgentAn agent that selects the first legal action, only after a 2 seconds sleep.
- SelectAction(actions: list[CollectAction | ReserveAction | BuyAction], game_state: SplendorState, game_rule: SplendorGameRule) CollectAction | ReserveAction | BuyAction[source]
 
- splendor.agents.generic.timeout.myAgent
 alias of
TimeoutAgent