Families and classrooms · Economics

Supply and demand, shown with a city game

Board and card games are a good way to teach supply and demand, but the market in them stands still between rounds. In a city builder the market is alive: students add a home, open a rival shop or change a price, and the numbers move straight away. This page maps the textbook ideas onto one free browser game, Cashmate, honestly, including what its model leaves out. It is written for teachers and for curious players; every number on it comes from the game's own code.

The short version: every shop in the game has a straight-line demand curve, and its supply is a fixed capacity: what its workers can make each minute. It sells the smaller of the two. The best price is where demand meets capacity, or half the top price when capacity is not the limit. More homes and happier homes shift demand out; workers, upgrades and new equipment shift capacity; and a rival shop of the same kind is more sellers in the same market, an increase in supply. Students can see each of these in a few minutes of play.

What students can see in a city that a board game hides

In a classroom simulation the demand curve is usually a table on a handout. In the game it comes from the city itself. Each shop's customers are the residents of the homes within its reach, weighted by how happy they are, so building a home is literally adding buyers to a market, and a park makes the buyers you already have spend more. Students change one thing, and the shop view shows the new best price and how much it makes and sells each minute. No setup, no account, and the same city works for a whole lesson. Prices are in coins, an in-game currency.

The demand curve of one shop

Take the Sushi Bar that every new city starts with, after its first hour (when a starting bonus has ended). It has 31 customers. Each would buy 0.408 portions a minute if sushi were free, and less as the price rises, down to nothing at the bar's top price of 8 coins. So at a price of zero the bar's customers want 12.6 portions a minute, and the quantity demanded falls in a straight line to zero at 8:

quantity demanded = customers × demand per customer × (1 − price ÷ top price)

The schedule below is that line at every whole-coin price, and beside it the same shop after one change in the city. The first column is a classic demand schedule. The others are the same schedule after a shift.

Demand schedule of the starting Sushi Bar: portions customers want per minute at each price, and after one change in the city.
PriceAs it startsOne more homeA parkA rival bar (each)
012.616.613.66.3
111.114.511.95.5
29.512.410.24.7
37.910.48.54
46.38.36.83.2
54.76.25.12.4
63.24.13.41.6
71.62.11.70.8
80000

Moving down one column is a movement along the curve: the price changes, the quantity demanded answers. Moving across a row is a shift of the curve: at the same price, more or fewer portions are wanted because something other than the price changed.

Supply here is capacity: what the shop can make

The game keeps the supply side simple. A shop makes a fixed number of items each minute at its level, as long as it has all its workers: the starting Sushi Bar makes 6 portions a minute, whatever the price. Drawn on the usual chart, that is a vertical supply line. Real textbook supply curves slope upwards, because higher prices draw out more production; here the shop's owner is the player, who decides to build more capacity rather than the price calling it out by itself. Tell students that this is a simplification, and a useful one: it makes the role of demand very easy to see.

What the shop makes but does not sell goes on its shelf, which holds 3 min 20 s of output. The shelf is the game's inventory: when it fills, the shop is making more than its customers buy at that price. The shop view's Goods tab shows the same shelf shared out among the shop's goods, which fill and empty together.

Where the price settles

The shop sells the smaller of its capacity and the quantity demanded, so what it takes in is price × that quantity. The game works out the price that brings in the most, shows it as a mark on the price slider and offers it with a button. Two cases decide where that price is:

  • Capacity is the limit. If customers would want more than the shop makes even at half the top price, the best price is the market-clearing price: the price at which the quantity demanded equals capacity, so the whole output sells and nothing is left over. The starting Sushi Bar is in this case: demand meets its 6 portions at 4.2 coins.
  • Demand is the limit. If capacity is larger than that, the best price is exactly half the top price, 4 coins for the Sushi Bar. On a straight-line demand curve, the middle is where price × quantity is largest. Raising the price from there loses more sales than it gains per sale, lowering it gains fewer sales than it loses per sale.

Economists would call the first case a market that clears and the second a seller with spare capacity. The pricing guide works the same bar through from the player's side, with what every price brings in; here the interest is in why the price lands where it does.

Demand and capacity of the starting Sushi Bar Price on the vertical axis from 0 to 8 coins, portions per minute on the horizontal axis. The demand line falls from 12.6 portions at a price of 0 to none at 8. With one more home it starts at 16.6. Capacity is a vertical line at 6 portions. The lines cross at 4.2 coins, and at 5.1 coins with the extra home. 0 2 4 6 8 0 2 4 6 8 10 12 14 16 18 20 Portions per minute Price (coins) demand +1 home capacity
The starting Sushi Bar after the new-city bonus, drawn from the game’s numbers: its demand line, the same line after one more home, and its capacity. Each dot is the best price.

Ask students what happens at other prices. At 2 coins the customers want 9.5 portions a minute but the bar makes only 6: a shortage. The shelf empties and the panel says the bar "Sells everything it makes", but it is leaving coins on the table. At 6 coins they want only 3.2: a surplus, and the shelf fills up until the shop is making for nothing.

Shifts versus movements: what moves the demand curve

Two things in the city shift the whole market's demand curve, and both are in the schedule above. (A rival bar shifts one bar's own curve too, as the last column shows; it is covered under supply below, because for the street as a whole it adds a seller, not buyers.)

  • More buyers. One more Apartment Block in reach adds its residents. At a price of zero the bar's customers now want 16.6 portions instead of 12.6. Capacity has not changed, so the market-clearing price rises to 5.1 coins and the bar sells the same 6 portions for more.
  • Happier buyers. A park makes nearby residents happier, and happy residents spend more: each counts as between ×0.5 and ×1.5 of a customer. The park adds no one, yet the curve moves out to 13.6 portions at a price of zero, a smaller shift than a new home's. In textbook terms this is a change in tastes (preferences): the same buyers want more at every price.

Just as useful is what does not shift it. An Arcade next door sells in another market (fun, not food), so the bar's curve does not move at all: the city's residents shop in every market at once, and markets never compete. Students who expect every new shop to steal sushi customers learn the difference between a substitute and an unrelated good.

Supply shifts: workers, upgrades and rival sellers

Three things change a shop's capacity. Workers: a shop with half its workers makes half as much. If the Sushi Bar had only one of its two, it would make 3 portions a minute; on the same demand curve its best price would rise to 6.1, a textbook supply cut: a higher price and a smaller quantity. Upgrades: a bigger building makes more. Take an Arcade on the corner across from the Sushi Bar, a different shop in a different market. At its first level it makes 7.2 game plays a minute, its customers would want 15.2 if playing were free, and it sells out at a best price of 6.3 coins out of a top price of 12. At its second level it makes 14.4. Now demand is the limit: the best price falls to 6, half the top price, and it sells 9.5 game plays a minute instead of 7.2. That is the textbook result of an increase in supply: a lower price and a larger quantity.

The third is equipment, a fit-out every shop can buy once the city has had 50 residents: 10 % more output and nothing else that customers notice. That makes it the cleanest supply shift in the game, and a good one for a second lesson in a grown city. On a shop that sells out it lowers the best price and raises the quantity sold; on one that does not, the extra output just goes on the shelf.

One honest catch for the upgrade example: unlike equipment, an upgrade also makes a shop more attractive to its customers, so it shifts demand a little as well. The Arcade's customers would want 19 game plays a minute at a price of zero after the upgrade, not 15.2. Point it out; it is a good question for sharp students.

A rival bar: more sellers, an increase in supply

Open a second Sushi Bar within reach of the same homes. Seen from one bar, it takes half the customers, so that bar's own demand curve shifts in to 6.3 portions at a price of zero: the last column of the schedule. Seen from the whole street, which is how a textbook draws a market, nothing changed on the demand side. The same 31 customers still want 12.6 portions a minute at a price of zero. What changed is supply: the street's two bars can make 12 portions a minute instead of 6. That is the textbook case of more sellers, an increase in supply, and the price falls. Both bars' best price drops to half the top price, 4 coins, and together they sell 6.3 portions a minute, a little more than one bar sold alone and far short of what the two could make. In a textbook market the price would keep falling until the two bars sold all they make; here each bar stops at the price that brings it the most, because customers do not switch to the cheaper bar (see what the model leaves out).

A neat check for students: one bar with twice the capacity would end up in exactly the same place, at 4 coins and 6.3 portions, because to the market it is the same increase in supply.

The starting Sushi Bar selected at dusk. Its shop view, on the Overview tab, shows the net coins per minute, the price slider with a mark at the best price, its menu of maki rolls and salmon nigiri, and under Details its income, upkeep, workers, the food market line, and how many portions it makes and sells a minute.
The shop view: price, best price, and under Details what it makes and sells each minute.

Three classroom activities: predict, change one thing, measure

Each activity starts from a new city and takes a few minutes. Students write a prediction first, then make the change and read the result in the Sushi Bar's panel: the best price on the slider, and what it makes and sells per minute under Details. Let the new city run for its first hour, or note that its starting bonus raises everything for a while; the best price, which is what students compare, stays the same through it.

  1. More buyers. "If we build one more home beside the Sushi Bar, what happens to its best price and to the portions it sells?" Answer: the price rises from 4.2 to 5.1, the portions stay at 6, because capacity is the limit. Follow-up: what would change if the bar could make more?
  2. A rival. "We open a second Sushi Bar across the street. What happens to each bar's price and sales, and to the street's total?" Answer: both best prices fall to 4, each sells 3.2, together a little more than one sold before. Then ask: for the street as a whole, did demand shift or supply? (Supply: the same buyers, more sellers.) Follow-up: who gained? (The residents: more sushi at a lower price.)
  3. Shortage and surplus. "Set the bar's price to 2, then to 6. Watch the shelf." Answer: at 2 the shelf empties and the bar sells all it makes; at 6 the shelf fills, and after a while the panel warns that the price is above its best. Follow-up: find the price where the shelf neither fills nor empties.

The pricing guide works through the same shop from the player's side, and the customers guide covers reach and happiness in more depth.

What the model leaves out

  • An upward-sloping supply curve. Capacity does not respond to price by itself.
  • Cost per item. A shop pays a fixed upkeep each minute (4.8 coins for the Sushi Bar), the same whether it sells one portion or all of them. So the best price is the one that brings in the most, not one that weighs costs.
  • Price competition. Customers split between two shops of one kind by how attractive each shop is, not by price. A cheaper rival does not win more customers; each shop's own price only decides how much its share buys.
  • Substitution between goods. A shop's goods take fixed shares of its sales at one menu price. A premium good, another fit-out, sells 15 % of them at up to 1.4× that price, never above the top price; the other goods give up that share, and no price moves buyers from one good to another.
  • Time and expectations. Demand does not change with the hour of the day or the season, and nobody waits for a sale.
  • Other sellers. The player builds every shop. No competitor enters the market on its own when prices are high.

These gaps are good discussion points: ask students what would happen in a real street if one sushi bar halved its price.

Sources and further reading

  • OpenStax, Principles of Economics 3e, chapter 3: Demand and Supply: demand and supply schedules, shifts versus movements, and the four-step process for changes in equilibrium. Free to read online.
  • Saylor Academy, Principles of Economics: Supply: the supply shifters, among them the number of sellers: "An increase in the number of sellers supplying a good or service shifts the supply curve to the right". Free to read online.
  • Federal Reserve Education, Market Equilibrium: an interactive module for high school and college students.
  • Council for Economic Education (EconEdLink), Supply and Demand Game: a quiz board game for grades nine to twelve, a good warm-up before the city.

For parents and teachers wondering about the game itself (no ads, no chat, no account), see what parents should know; for the rules of the economy in one place, the player guide.

More guides

Every rule and building in one place: the Cashmate player guide.

All guides