Each agent plays every neighbor within reach each tick. Cooperation pays both; betrayal gives the betrayer a little and costs the victim a lot. Nobody profits from betraying a cooperator more than from cooperating, so betrayal is driven by distrust, not greed.
| They cooperate | They defect | |
|---|---|---|
| You cooperate | +3 (+5 in a market) | −4 |
| You defect | +1 (−2 in a court) | −1 (−4 in a court) |
Each agent holds a trust level toward every color. Being betrayed lowers it; being met in good faith slowly raises it. Agents drift toward partners who treat them well and away from those who don't. Agents who are losing stray outward into the open frontier, where they forage alone: safer, but poorer than a good neighborhood. Agents reproduce when strong and die when depleted.
Walls block contact, and with it both conflict and reconciliation. Markets pay +2 extra to cooperating pairs and draw people in. Courts fine defectors 3. Mixing zones stir people up, switch off the pull toward their own color and reach each one toward the nearest other color; it brings colors into contact, and without enough trust, contact means betrayal. People inside lose 2 legitimacy for being moved. Propaganda shifts one color's trust in another over 60 ticks; hardening angers the targeted color. Heavy-handed moves cost legitimacy, and a color under 25 grows distrustful of everyone.
United States runs on different rules, calibrated so trust stays in the middle the way it does in real life:
It settles near 64% in-group and 59% cross-color cooperation. Markets and courts lift trust while they run, then it relaxes back.