egttools.behaviors.NormalForm.TwoActions¶
API reference documentation for behaviors.NormalForm.TwoActions
submodule.
Classes
Always repeats the same action, but explores a different action with probability :param epsilon. |
|
This strategy always cooperates. |
|
This strategy always defects. |
|
A Detective player who tries to analyze the opponent. |
|
A GRIM player with randomized first action and probability of making mistakes. |
|
A TFT player with randomized first action and probability of making mistakes. |
|
Grim (Trigger): Cooperates until its opponent has defected once, and then defects for the rest of the game. |
|
Cooperates on the first round and after its opponent cooperates. |
|
TFT with two differences: (1) it increases the string of punishing defection responses with each additional defection by its opponent (2) it apologizes for each string of defectionsby cooperating in the subsequent two rounds. |
|
Imitates opponent as in TFT, but makes mistakes with :param error_probability. |
|
Defines a Memory One strategy. |
|
Win-stay loose-shift: Cooperates if it and its opponent moved alike inprevious move and defects if they moved differently. |
|
This players chooses cooperation with uniform random probability. |
|
Defects on the first round and imitates its opponent's previous move thereafter. |
|
Tit for Tat: Cooperates in the first round and imitates the opponent's move thereafter. |
|
Tit for 2 tats: Defects if defected twice. |
|
2 Tits for tat: Defects twice if defected. |