This simulation uses a version of Prisoner's Dilemma which I call the FARMER's GAME (or one could call it "Survivor";).
You can change the payoff matrix (as long as it is symmetric) to explore other games.
My object was to explore several wealth-relative effects suggested in a paper by
Ito et. al. which are not normally considered
(i.e. standard game theory assumes the absolute values of payoffs make no difference, and if evolutionary,
replacement criterion is copying a neighboring strategy, not identifiable death of a player). The sim is only evolutionary
in the restricted sense that wealth accumulates and players may die. Strategies do not evolve (except that they may depend
on wealth) and are not copied, and new players are not created. Full evolutionary sims would take too long in Javascript,
and by evolving strategies and creating players would actually obscure measures of particular wealth-strategy combinations.
However, this sim allows questions about survival thresholds and the relative merit of defined strategies to be quickly answered.
See below for copy/mod permissions.