egttools.behaviors.NormalForm.TwoActions

API reference documentation for behaviors.NormalForm.TwoActions submodule.

Classes

ActionInertia

Strategy that tends to repeat its previous action.

Cooperator

Strategy that always cooperates.

Defector

Strategy that 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: cooperate until the opponent defects once, then defect forever.

GenerousTFT

Generous Tit for Tat.

GradualTFT

Gradual Tit for Tat.

ImperfectTFT

Tit for Tat with implementation errors.

MemoryOneStrategy

Defines a Memory One strategy.

Pavlov

Win-stay, lose-shift strategy.

Random

Strategy that cooperates with probability 0.5.

SuspiciousTFT

Suspicious Tit for Tat: defect in the first round, then copy the opponent's previous action.

TFT

Tit for Tat: cooperate in the first round, then copy the opponent's previous action.

TFTT

Tit for two tats: defect only after two consecutive defections.

TTFT

Two tits for tat: defect twice after a defection.