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.

AbstractNPlayerStateGame

Abstract base class for N-player games with state-dependent payoffs.

AbstractReplicatorGame

Base class for games that define fitness in the infinite-population limit.

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 game.

CRDGameTU

Collective risk dilemma with timing uncertainty.

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.

OneShotCRDNetworkGame

One-shot collective risk dilemma in networks.

PGG

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