🎯 Spatial Prisoner's Dilemma Grid (2D)
2D Canvas simulation of the spatial iterated Prisoner's Dilemma: agents on a grid play against their eight neighbours, then imitate whoever scored best. Adjust the payoff matrix, grid size, mutation noise and starting presets and watch cooperation emerge, collapse, or cycle in real time.
⚙ Under the hood
A 2D Canvas simulation of the spatial iterated Prisoner's Dilemma: agents on a grid play against their eight neighbours each round, then copy whichever neighbour scored highest. Adjust the payoff matrix (Temptation, Reward, Punishment, Sucker), grid size, mutation noise, and starting presets to see cooperation emerge, collapse, or cycle among five competing strategies.
game theoryprisoner's dilemmaevolutionary strategynash equilibriumtit-for-tatspatial simulation
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install