Watch cooperation rise and fall on a grid of simple players who copy whichever neighbor is doing best.
A simple model of how cooperation can survive among selfish neighbors, from a 1992 paper by Martin Nowak and Robert May. Each square on the grid is a player that either cooperates (helps the players next to it) or defects (takes advantage of them).
Each round, every square plays a quick game with its neighbors, the 8 squares touching it (fewer at the edges). Two cooperators each earn 1 point, a defector facing a cooperator earns b points while the cooperator gets 0, and two defectors get 0; a square's score is its total from all its neighbors. Then every square switches, all at the same moment, to the strategy of the highest scorer among itself and its neighbors.
b is the temptation to defect: how much a defector gains by cheating a cooperator. It is always more than 1, the reward for cooperating. One round of playing and switching is a generation.
Blue and red squares kept their strategy this generation. Yellow and green squares just switched, so they show where the action is.