egttools.games.nonlinear_games

Functions

calculate_state

This function converts a vector containing counts into an index.

sample_simplex

Transforms a state index into a vector.

Classes

AbstractCPRStrategy

AbstractNPlayerGame

Abstract N-Player Game.

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.

NPlayerStagHunt

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