PPolySim OS

Game Theory (Nash)

When everyone acts in self-interest, where does it settle? A Nash equilibrium is the stable outcome no player can improve on alone — the heart of game theory.

Game Theory (Nash)Live
Row player vs Column player
CooperateDefect
Cooperate
3
3
0
5
Defect
5
0
1
1
Nash
cyan = row payoff · green = column payoff

Controls

A Nash equilibrium is a pair of strategies where neither player can do better by unilaterally changing — the cornerstone of game theory. In the Prisoner's Dilemma both defect even though cooperating pays more; Matching Pennies has no pure equilibrium at all. Highlighted cells are the pure-strategy Nash equilibria.

▶ Run in Python

Data Inspector

GamePrisoner's Dilemma
Pure Nash equilibria1
Typedominant

Governing equation

Reading this result: The lone equilibrium has both players defect, even though mutual cooperation pays more — individually rational, collectively worse.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

In a Nash equilibrium, each player's strategy is a best response to the others, so no one gains by deviating. The Prisoner's Dilemma shows how individually rational choices can leave everyone worse off; Matching Pennies has no pure equilibrium at all, only a mixed one. The highlighted cells are the pure-strategy Nash equilibria of each classic game.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Optimization simulations

Frequently asked questions

Is this game theory Nash equilibrium tool really free?
Yes. Game Theory (Nash) runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.