egttools.games.abstract_games

Functions

abstractmethod

A decorator indicating abstract methods.

calculate_state

Converts a discrete population configuration into a unique index.

sample_simplex

Converts a state index into a group composition vector.

Classes

AbstractGame

Base class for all game-theoretic models in EGTtools.

AbstractNPlayerGame

Abstract N-Player Game.

AbstractNPlayerGameExpectedPayoff

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.

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.