egttools.games.nonlinear_games

Functions

calculate_state

Converts a discrete population configuration into a unique index.

sample_simplex

Converts a state index into a group composition 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’.