egttools.games

API reference documentation for the games submodule.

Classes

AbstractGame

Base class for all game-theoretic models in EGTtools.

AbstractNPlayerGame

Abstract N-Player Game.

AbstractSpatialGame

Abstract base class for spatially structured games.

AbstractTwoPLayerGame

This abstract Game class can be used in most scenarios where the fitness of a strategy is calculated as its expected payoff given the population state.

CRDGame

Collective Risk Dilemma (CRD) Game.

CRDGameTU

Collective Risk Dilemma with Timing Uncertainty (CRDGameTU).

CommonPoolResourceDilemma

Abstract N-Player Game.

CommonPoolResourceDilemmaCommitment

Common Pool resource game with commitment, but the threshold is set as another strategy :type group_size: int :param group_size: Size of the group playing the game.

InformalRiskGame

Game of informal risk sharing.

Matrix2PlayerGameHolder

Matrix-based 2-Player Game Holder.

MatrixNPlayerGameHolder

Matrix-based N-Player Game Holder.

NPlayerStagHunt

This game is based on the article Pacheco et al., ‘Evolutionary Dynamics of Collective Action in N -Person Stag Hunt Dilemmas’.

NormalFormGame

Overloaded function.

NormalFormNetworkGame

Overloaded function.

OneShotCRD

One-Shot Collective Risk Dilemma (CRD).

OneShotCRDNetworkGame

One-Shot Collective Risk Dilemma in Networks.

PGG

Classical Public Goods game with only 2 possible contributions (o or cost).