egttools.games.pgg

Functions

calculate_nb_states

Calculates the number of states (combinations) of the members of a group in a subgroup.

calculate_state

This function converts a vector containing counts into an index.

sample_simplex

Transforms a state index into a vector.

Classes

AbstractNPlayerGame

Abstract N-Player Game.

PGG

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

PGGOneShotStrategy