In this post

Porter: Long, Short and Trading Wars on Your Phone

A free phone game with financial analytics

Porter's live market map, zoomed in on the brokers. Ten brokers appear as circles with initials, each with a ring in the colours of the items it trades. Four coalitions show as blue outlines with name labels: Quiet Circle with TVB, POB and VFB; Crimson Compact with UJB and RHB; Silver Pact with WPB and AWB; and Silver Guild with EQB, FQB and VBB. Small crowns mark the three richest brokers: EQB, WPB and VBB. UJB wears a red ring that marks a smear, and EQB, in a darker shade, wears a red smear ring and an orange screen-bomb ring. Thin coloured trade lines curve across the map from seller dots on the left to buyer diamonds on the right.

Porter is a free, mobile-friendly learning environment to learn how supply and demand works on free markets. Buy, sell and bomb rivals to achieve a goal in a limited amount of time.

Today, AI simplifies building apps to learn about almost any subject, and learning by doing works better than reading. That’s the idea behind Porter: a market game for your phone’s browser. You get one broker, $1,000 and five minutes to trade three items (Alpha, Beta and Gamma) against rival brokers.

Play it now: it’s free, needs no install or sign-up, and works offline.

The name? Porter is a dark beer, and the app is dark by default.

Meet the market

Porter shows the market as a live map: sellers on the left, buyers on the right, and brokers in the middle. Every trade sends a coloured dot from the seller to the buyer.

The whole market runs on three items: Alpha, Beta and Gamma. Think of them as commodities, like copper or wheat. Their prices start between about $40 and $90 a unit, then move with supply and demand. And no, finance fans, they have nothing to do with alpha returns or option gamma. Here they’re just names.

You win if your net worth reaches $7,000, or if you’re the richest broker when time runs out. If it falls to -$1,000, you go bankrupt.

You never press “buy” or “sell”, and that’s on purpose. In a real market, you can’t control the big picture either. So instead, you give your broker a mandate, a set of rules to follow:

  • A strategy: Spread (earn the gap between bid and ask), Strangle (buy most of one item, then sell it at a high price), Co-op (team up with other brokers and share profit) or Monopoly (sell one item cheaper than everyone else).
  • A risk appetite: how much it bets each turn, and how far it can go short.
  • A hold appetite: how much stock it keeps, betting on higher prices.

Small changes in these settings give you very different markets.

Controlling everything isn’t fun.

Three phone screens side by side. Left: the broker setup form, with the name Copper Lane, the strategies Spread, Strangle, Co-op and Monopoly, the risk levels Low, Medium and High, the hold levels None, Quarter, Half and Most, and a Start game button. Middle: the live market twenty seconds into a game. A panel at the top reads You, Copper Lane, rank 4 of 8, 4:41 left, net worth $1,202 against a goal of $7,000. Below it, brokers with initials such as PA, NM and QE form a column, a coalition outline named Crimson Union wraps the top three, and orange sellers and blue buyers crowd in on both sides, with thin coloured trade lines between them. Right: the same market later in the game, with two decision cards. The first reads Keystone Brokerage wants you in its coalition, with Accept and Decline. The second reads Pinewood Agency is pulling ahead, with Hit trust ($100), Screen bomb ($150) and Let it be.
Set the mandate, watch your broker trade, then make the big decisions before time runs out.

Long, short and the scoreboard

Going long means you buy and hope the price rises. Going short means you sell units you don’t have and buy them back later (covering), hopefully cheaper. In Porter, a short position shows as a negative number on the broker’s card, and it pulls your net worth down when prices rise. A high-risk broker can owe up to 25 units of each item.

At the end, Porter explains how the winner won. In one test run, a high-risk Spread broker reached the goal in under two minutes, mostly by selling short.

Phone screen with the game result card. It reads You won, Your broker reached the goal before time ran out, How you won with $7,546. Strategy: Spread the whole game. Risk: High risk the whole game. Holding: Holds a quarter the whole game. Long/short: Mostly short, it held up to 15 units at once and sold short 60 times, up to 90 units at once, and it ended 90 units short. Trades: 129, the most of any broker; its rivals averaged 51. Coalitions: stayed out of coalitions, cutting its fees to compete with them. Moves: none.
The post-game summary: 60 short sales, 129 trades and no coalition.

Read the market like an analyst

The Analytics tab turns the market into dashboards, with three views.

The Exchange dashboard is one of the most interesting parts of the game.

The Exchange view shows where the market is going:

  • Supply and demand over time, with summary numbers and trend lines.
  • Market depth: units offered against units wanted, for each item.
  • Prices: the volume-weighted average price of each item.
  • Bid–ask spread: a narrow spread means a liquid market, and a wide one leaves room for brokers to profit.
A laptop browser window and a phone show the Exchange dashboard. In the browser, four tiles read available supply 19,185 units in 231 sell orders, demand 12,026 units in 193 buy orders, 16,536 units traded in the last five minutes and 0 failed trades. Below them, a line chart shows supply climbing above demand over five minutes, diverging bars compare supply and demand for Alpha, Beta and Gamma, a second line chart tracks the price of each item, and pairs of dots show the best bid and best ask per item. The phone in front shows the same tiles and charts stacked in one column.
The Exchange dashboard on a laptop and on a phone, over the last five minutes.

The Risk view shows the numbers a risk manager would track:

  • Failure rate: the share of trades that failed to settle.
  • Broker concentration: the Herfindahl–Hirschman index, which US regulators use to review mergers. Above 1,800, a market counts as highly concentrated.
  • Broker stock (unsold inventory), volatility (price swings) and supply cover (units on offer for each unit wanted).
Two phone screens show the Risk dashboard. The first has a failure rate tile at 0%, graded Low, with 0 of 4,219 trades failed; a broker concentration tile at 1,836 with a red Highly concentrated label; broker stock of 59; and a ranking of brokers by their share of recent trades, led by Copper Lane at 24% and Harbor Partners at 22%. The second shows price volatility by item, between 0.8% and 1.1%, broker stock by item, and supply cover by item, where Gamma, Alpha and Beta all sit above the line that marks supply equal to demand.
In this run, broker concentration reached 1,836, a level regulators call highly concentrated.

The Traders view ranks every broker by net worth, and shows its trust score and coalition.

A browser window with the Traders leaderboard, brokers by net worth. Row 1, outlined in green: Copper Lane, marked You, trusted 100%, $9,948.40. Row 2: Meridian Trading, trusted 82%, Emerald Accord, $5,460.87. Row 3: Keystone Brokerage, trusted 32%, $4,665.95. Rows 4 to 8 continue down to FirstOrbitBroker, trusted 2%, Crimson Union, $1,353.25.
The leaderboard: net worth, trust and coalition for every broker.

Behind these numbers, Porter follows real market rules. A trade happens at the price of the order already on the book. The exchange rejects orders that a broker can’t pay for or deliver. Without paid market data, brokers can’t see their rivals’ orders. And failed trades cut trust, which sends clients to other brokers.

Your moves, and what they do to the market

During a game, the Moves menu gives you seven moves. Each one costs cash and needs time to recharge:

  • Smear, $100: cuts a rival’s trust, so its clients move to other brokers.
  • Bomb, $150: blocks a rival for a short time. Its orders leave the book, and its clients have to wait.
  • Isolate, $50: blocks one seller or buyer for a short time. No one can trade with it, so supply or demand drops for a moment. For now, only you have this move.
  • Break, $250: ends a coalition, so its members compete again.
  • Join: pay a member’s price to enter its coalition, and share its data and profit.
  • Leave, free: your profit is yours again, and so is all the risk.
  • Shield, $1,000: protects you from attacks for the rest of the game, but costs your whole starting stake.

The moves make it fun to learn how markets with many players work.

It’s also interesting to watch when rivals use these moves, and they love to use them on you. In the image at the top, UJB wears a red smear ring, and the leader, EQB, wears a smear ring and an orange bomb ring.

Coalitions teach the best lesson, because they act like cartels. The image at the top shows four of them. Members never undercut each other, so concentration grows in the Risk view, and outsiders cut their fees to compete.

Shared profit also brings the free-rider problem: when members pay in more than they get back, they leave.

Behind Porter

Claude Code, an AI coding agent, wrote the whole game in a couple of days. AI agents are capable, but their code needs direction. A 2,000-line rules file, CODING.md, sets strict rules like writing tests first and following software design patterns. Code that follows these rules is easier to change later, and that saves tokens, the units you pay the AI for.

The rival brokers follow fixed rules, not a language model (an AI like Claude). That keeps Porter cheap to run. Besides, most market decisions are just numbers: you don’t need an AI model to chase a profit goal. A future version may change that.

The whole market runs in your phone’s browser, with no server.

Porter is free for anyone. It’s a good way to learn how trading markets work, especially through the dashboards: which risks to watch, which numbers to track, and how players affect each other. And because you can go long and short, you always feel your market exposure, just like on a trading desk.

Next versions will bring more difficulty levels and more options, based on feedback. So try it: open Porter, pick the Scarce supply scenario (far more buyers than sellers), choose Monopoly with high risk, and try to survive five minutes. Then share what you think.

Explore