Base Player¶
A collection of player classes.
- Includes:
Player
FixedPolicyPlayer
- class imperfecto.algos.player.Player(name='')[source]¶
Bases:
abc.ABC
An abstract player class.
- abstract update_strategy(history, player_id)[source]¶
Update the strategy of the player at the end of the game.
- property game¶
- property strategy¶
A dict with key = infostate and value = np.array of shape (n_actions,).
- class imperfecto.algos.player.NormalFormPlayer(name='')[source]¶
Bases:
imperfecto.algos.player.Player
,abc.ABC
- property strategy¶
A np.array of shape (n_actions,).
- class imperfecto.algos.player.FixedPolicyPlayer(name, strategy)[source]¶
Bases:
imperfecto.algos.player.Player
A player with a given fixed strategy.