UserPreferences

SpatialEvolutionaryPrisonersDilemmaCellularAutomaton


Criminals A and B have been arrested after having committed a crime. They are being interrogated separately, and they have not had a chance to communicate with each other. Each has a choice: cooperate with her accomplice by remaining silent during interrogation, or defect by spilling beans. If both criminals cooperate, each gets no favor from the police and no especially harsh treatment. If both defect, samething. If one defects and the other cooperates, however, the defector wins lenient treatment from the police, and the cooperator gets harsh treatment.

What to do? Classical game-theory models predict that both criminals (or "players") should defect. Evolutionary biologists have interpreted this outcome as a predictin that there should be no cooperation among individuals in nature, in circumstannces mathematically similar to those in the game.

But maybe cooperation can occur if there are many players, and the many players each interact (play the game) with their neighbors.

And maybe after time, cooperation can evolve.

Here's the CA:

    ask patches [
        if max values-from neighbors[payoff] > payoff [
            set next-strategy (current-strategy-of max-one-of neighbors[payoff])
        ]
    ]