A population of agents plays public-goods games in groups of 2 to 5 drawn from a network โ a hypergraph, since a single "edge" can bind more than two players. Contributions don't scale linearly: each additional cooperator in a group can be worth more than the last (synergy) or less (discounting). Agents imitate better-paying neighbors round after round. Watch cooperation stabilize โ or collapse to zero.
Based on arXiv:2604.07228 โ "Emergence of cooperation in nonlinear higher-order public goods games"Each dot is an agent on a 20ร20 toroidal grid. Teal = cooperator, red = defector. Edges show who can group together.
Drag sliders while the sim runs โ changes apply live, no reset needed.
Fraction of the population currently cooperating, each round.
g with nc cooperators, each paying cost c=1:pot / g, cooperators additionally pay c.