egttools.games

API reference documentation for the games submodule.

Classes

AbstractGame

Abstract class which must be implemented by any new game.

AbstractNPlayerGame

Abstract N-Player Game.

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.

CRDGameTU

This class implements a One-Shot Collective Risk Dilemma.

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

Holder class for 2-player games for which the expected payoff between strategies has already been calculated.

MatrixNPlayerGameHolder

Holder class for N-player games for which the expected payoff between strategies has already been calculated.

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.

OneShotCRD

One-Shot Collective Risk Dilemma (CRD).

PGG

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

egttools.games.abstract_games

egttools.games.informal_risk

egttools.games.nonlinear_games

egttools.games.opinion_game

egttools.games.pgg