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: Agent

An agent that selects the first legal action.

SelectAction(actions, game_state, game_rule)[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: Agent

An agent that selects a random legal action.

SelectAction(actions, game_state, game_rule)[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: Agent

An agent that selects the first legal action, only after a 2 seconds sleep.

SelectAction(actions, game_state, game_rule)[source]
splendor.agents.generic.timeout.myAgent

alias of TimeoutAgent

Module contents