Home▸Articles▸Genetics & Evolution

Evolutionary Game Theory: Replicator Dynamics in 2D

A powerful framework for understanding how strategies evolve and coexist within populations, even when spatial structure matters.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is Evolutionary Game Theory

Evolutionary game theory (EGT) extends traditional game theory by incorporating the dynamics of strategy adoption in a population. It models how individuals with different strategies interact and compete, leading to changes in the frequency of these strategies over time.

The core concept is that players can adopt or imitate the successful strategies of others, much like natural selection operates on genetic traits.

Replicator Dynamics

In EGT, replicator dynamics describe how the frequency of a strategy changes over time based on its relative success compared to other strategies. A strategy’s change in frequency is proportional to its difference from the average payoff across all strategies.

This process can lead to stable states where no single strategy dominates (mixed equilibria) or to clear dominance by one strategy, known as an evolutionarily stable strategy (ESS).

live demo · related simulation● LIVE

Spatial Structure and 2D Grids

In the context of this simulation, spatial structure is crucial. Each cell on a toroidal grid represents an individual or a population that can adopt one of several strategies.

The dynamics are influenced by local interactions with neighbors, leading to complex patterns of strategy distribution and convergence.

Real-World Applications

EGT has applications in various fields including biology, economics, and social sciences. For instance, it can model the spread of infectious diseases, competition between companies, or even the evolution of cooperation within societies.

By adjusting parameters like resource values, fight costs, temptation payoffs, and mutation noise, one can observe how these factors shape the evolutionary outcomes in different scenarios.

Frequently asked questions

What is a Nash equilibrium?

A Nash equilibrium occurs when no player can improve their payoff by unilaterally changing their strategy, given that other players keep theirs unchanged.

How does mutation noise affect the simulation?

Mutation noise introduces random changes in strategies, simulating genetic mutations or behavioral variations. This can lead to new stable states or prevent convergence to a single ESS.

What is an evolutionarily stable strategy (ESS)?

An ESS is a strategy that, if adopted by the entire population, cannot be invaded by any alternative strategy that is initially rare but otherwise identical in payoff.

Why use a toroidal grid for these simulations?

A toroidal (or wrapped) grid ensures that edges are connected, creating a continuous space where strategies can spread without boundaries. This mimics real-world scenarios more accurately by allowing spatial interactions to wrap around the edges.

Try it live

Everything above runs in your browser — open Evolutionary Game Theory: Replicator Dynamics (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Evolutionary Game Theory: Replicator Dynamics (2D) simulation

What did you find?

Add reproduction steps (optional)