egttools.games.abstract_games

Functions

abstractmethod

A decorator indicating abstract methods.

calculate_state

This function converts a vector containing counts into an index.

sample_simplex

Transforms a state index into a vector.

Classes

AbstractGame

Abstract class which must be implemented by any new game.

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.