egttools.behaviors.NormalForm.TwoActions

API reference documentation for behaviors.NormalForm.TwoActions submodule.

Classes

ActionInertia

Always repeats the same action, but explores a different action with probability :param epsilon.

Cooperator

This strategy always cooperates.

Defector

This strategy always defects.

Detective

A Detective player who tries to analyze the opponent.

EpsilonGRIM

A GRIM player with randomized first action and probability of making mistakes.

EpsilonTFT

A TFT player with randomized first action and probability of making mistakes.

GRIM

Grim (Trigger): Cooperates until its opponent has defected once, and then defects for the rest of the game.

GenerousTFT

Cooperates on the first round and after its opponent cooperates.

GradualTFT

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.

ImperfectTFT

Imitates opponent as in TFT, but makes mistakes with :param error_probability.

MemoryOneStrategy

Defines a Memory One strategy.

Pavlov

Win-stay loose-shift: Cooperates if it and its opponent moved alike inprevious move and defects if they moved differently.

Random

This players chooses cooperation with uniform random probability.

SuspiciousTFT

Defects on the first round and imitates its opponent's previous move thereafter.

TFT

Tit for Tat: Cooperates in the first round and imitates the opponent's move thereafter.

TFTT

Tit for 2 tats: Defects if defected twice.

TTFT

2 Tits for tat: Defects twice if defected.

egttools.behaviors.NormalForm.TwoActions.nfg_strategies