SF-CODE

Infinite Games · trust under pressure · build DL-5 This Is America

Infinite Dilemma

A city of neighbors in four colors: Ochre, Teal, Rose and Iris. Every tick, each one meets everyone within reach and decides whether to cooperate or betray. You can't make them do either. You're the policymaker: you can build walls, open markets, seat courts, stir neighborhoods together and run propaganda, and then you watch what the city does with them.

Enter the city
Try it

The tipping point

Each line is one agent's trust in another color, the chance it cooperates. Being met in good faith nudges it up; being betrayed knocks it down harder. Start the lines at different trust levels and see where they end up. Then move the meeting to a market or a court and watch the tipping point move.

Where they meet
Starting trust
0.55
The idea

Spite, not greed

The classic prisoner's dilemma pays you most for betraying a cooperator. Not here: betraying earns +1, cooperating earns +3. So nobody betrays to get rich. They betray because they expect to be betrayed, and defecting against a defector (−1) beats being the sucker (−4). Distrust is the whole engine, and it feeds itself.

They cooperateThey defect
You cooperate+3 (+5 in a market)−4
You defect+1 (−2 in a court)−1 (−4 in a court)

Trust climbs by a small gain after good faith and falls by a larger loss after betrayal. Above the point where the two balance, trust rises toward cooperation; below it, it slides toward hostility.

tipping point = loss / (gain + loss) open ground 0.05 / (0.03 + 0.05) = 0.625 market 0.05 / (0.05 + 0.05) = 0.50 court 0.025 / (0.03 + 0.025) = 0.45 both 0.025 / (0.05 + 0.025) = 0.33

Every scenario starts with cross-color trust below 0.625. Leave the map alone and contact between colors turns hostile. Markets and courts don't force anyone to cooperate: they lower the bar trust has to clear.

Policy

Six levers, all blunt

Every lever costs political capital and lands 20 ticks after you order it. Capital starts at 12, grows 0.06 a tick and caps at 30. Heavy-handed moves cost legitimacy, and every price rises as legitimacy falls. A color whose legitimacy drops under 25 falls into unrest and slowly stops trusting anyone.

0.3 a span · permanent

Wall

Blocks contact and movement. That stops the betrayals and the reconciliations. Each span costs the legitimacy of every color living next to it.

0.6 a span · instant

Demolish

Tears walls down. The distrust they let build up stays behind.

5 · 400 ticks

Market

+2 to every cooperating pair inside, faster trust gain, and a pull that draws people in from three times its radius.

6 · 300 ticks

Court

Fines defectors 3 and halves how much a victim's trust drops. The colors inside lose 3 legitimacy for being policed.

4 · 300 ticks

Mix

The opposite of a wall. Stirs everyone inside, switches off the pull toward their own color and reaches each one toward the nearest other color. On its own it mostly breeds betrayal. Stack it with a market and a court and it can reconnect two nations. Costs the colors inside 2 legitimacy.

7 · 60 ticks

Propaganda

Tell one color the other is like them, or a threat. Warming costs the audience 5 legitimacy. Hardening costs the target 15, and the target hears it.

Scenarios

Five cities

ScenarioLayoutTrust (own / other)Left alone
Two nationsOchre west, Teal east0.90 / 0.50The sides pull apart around an empty no-man's-land.
Four quartersOne color per quadrant0.90 / 0.50Four borders to keep the peace on.
Mixed cityAll four colors scattered0.85 / 0.60Self-sorts into same-color neighborhoods: segregation climbs from 57% to 84%.
EnclavesRose pockets inside Ochre, Teal on the east edge0.90 / 0.50The enclaves seal themselves off.
United States2020 Census shares (61 / 20 / 13 / 6%), minorities leaning toward a few neighborhoods0.64 / 0.62Holds near 64% in-group and 59% cross-color cooperation, with partial segregation. Markets and courts lift trust while they run, then it relaxes back.

The first four cities run on hard rules that push trust to the extremes: everyone ends up either loving or hating. United States runs on softer, calibrated rules, so trust settles in the middle the way it does in surveys and lab experiments, where people cooperate with strangers about half the time and favor their own group modestly:

The colors are abstract; only the shares come from the 2020 Census.

There's no win screen. Like the rest of the Infinite Games, the city never resolves; you can only bend where it's headed. Population settles around 1,500 to 1,900 after an early boom.

How to play

Reading the map

Hearts
Every agent is a heart in its color, filled by its trust, read against the tipping point. A full heart is trusting (0.625 or more), and it holds. An outline with a small heart inside is wary, and sliding down. A broken heart is hostile (under 0.35). Zoomed far out they turn back into dots. By default it's trust in the other colors; pick one color to see who trusts that color.
Lines
Love and war. Pairs of different colors who cooperate are joined by soft pink bows, and the strongest bonds carry a little beating heart. Pairs locked in betrayal are joined by jagged orange lightning that crackles. A bolt strikes where someone has just been betrayed, and a heart floats up where a new bridge forms. Same-color lines are off by default, since they're everywhere.
Matrix
Who trusts whom: each color's average trust in each other color, pink above the tipping point, orange-red below. Tap a column to shade the map by it.
Walls
Dashed while they're being built, solid once they're up. Markets and courts are labeled circles with a countdown.
Navigate
Drag to pan, pinch or scroll to zoom, or use + − and Fit. Tap an agent to follow it: energy, age, neighbors and trust in each color.
Tools
Pick a tool on the policy desk. Wall: drag to draw (two fingers still pan). Demolish: drag across a wall. Market, Court and Mix: tap where to put it. Propaganda: pick an audience, a target and a message.
Desk
Legitimacy per color, in-group and cross-color cooperation, segregation, population and cooperation charts, and a log of dispatches.
Frontier
Agents who keep losing drift out into the open land and forage alone: safer, but poorer than a good neighborhood.

Works on phone or desktop. Build DL-5 “This Is America”.