← The Engines

How Silk Board’s computer plays

A companion to the game: where tokens land, a hand-made judge and a network that corrects it, every action tried with the real rules, trades weighed from both sides, and win chances checked against thousands of games

Download PDFPlay Silk Board

Silk Board is a property game for two to six players, set in Bengaluru. Its computer looks no further ahead than the action in front of it. It tries every action it could take on a copy of the game, with the real rules, and asks a judge how each result leaves every player’s chance of winning. The Medium computer’s judge is a formula written by hand. The Hard computer’s judge is a small neural network that learned, by playing itself, a correction to that formula. This companion follows one seeded game between four Hard computers through where tokens land, how a position is valued, how the computers buy, bid, build and trade, how the network learned, how strength is measured and how a game ends. It closes with the win chances the game shows on screen, which come from the same network, and a check of how honest they are over 3,600 games.

1 A game of Silk Board

What does a computer have to decide in a game of Silk Board?
Figure 1: The example position, at turn 24 of a seeded game between four Hard computers, with classic rules. Spaces are numbered in the order tokens visit them, from Majestic (0). A coloured band marks a locality’s group. A tinted space and a dot in its corner show its owner, M a mortgage, and a lettered disc a player’s token.

Silk Board is played on a ring of 40 spaces. Each player starts at Majestic, space 0, with ₹15 Cr, rolls two dice and moves clockwise. A player who passes Majestic collects a salary of ₹2 Cr. Most spaces can be owned: 22 localities in 8 groups, 4 metro lines and 2 utilities. A player who lands on one that nobody owns may buy it at its price. If they do not, it goes to auction among all the players. A player who lands on someone else’s property pays that owner rent.

Rent is what makes the game. A locality’s rent is small on its own and doubles when one player owns its whole group. An owner of a whole group may then build flats on it, up to four on each locality and then a tower. Each flat raises the rent many times over. Players can also mortgage a property for half its price, sell buildings back for half their cost, and trade properties and cash with one another. A player who owes more than they can raise goes bankrupt and leaves the game. The other spaces are taxes, two card decks (Kismat and Lottery), Silk Board, where a token waits like the jail of other property games, Cubbon Park and “Stuck in traffic”, which sends a token to Silk Board.

Every one of these choices is a decision for the computer, and they are of different kinds:

Buy or auction
Landing on an unowned space, pay the price or let everyone bid for it.
Bid
In an auction, raise the bid or drop out. Prices go up in steps until one bidder is left.
Build and sell
Add a flat or tower to a whole group, or sell one back to the bank.
Mortgage and redeem
Raise half a property’s price from the bank, or pay the loan back with 10% interest.
Trade
Offer properties and cash to another player, and answer their offers: accept, decline or counter.
Raise money
In debt, sell and mortgage until the debt is paid, or go bankrupt.

Leaving Silk Board is one more choice. A token there can pay a fine of ₹50 L, use a pass from the card decks, or try to roll a double.

The setup screen adds another layer. A game has two to six players. It can end when one player is left, after a set number of minutes, or after a set number of rounds. Cubbon Park can pay nothing, a fixed bonus or the taxes collected there. The bank can hold the classic 32 flats and 12 towers, any other stock or an unlimited supply. Two rules decide what happens to a bankrupt player’s property. One computer has to play well in every combination, including ones it never trained on.

The example in this companion is one seeded game between four Hard computers with classic rules. Figure 1 shows it at turn 24, when red is about to offer green a trade. Red owns Yelahanka and Devanahalli, two of the three North localities. Green owns the third, KR Puram. The rest of this companion works out how red values that position, how it finds the offer, and why green accepts.

2 Where tokens land

How often does a token land on each space?

The value of a property is the rent it collects, and rent is collected only when someone lands there. So the first thing the computer needs is how often each space is landed on.

2.1 Two dice

Two fair dice give 36 equally likely pairs. A total of 7 comes from six of them, so it is the commonest roll, and 2 and 12 come from one each. The bars are the chance of each total. A token therefore lands most often about seven spaces after where it stood.
Lemma 1 (The chance of a total). With two fair dice, a total of 𝑡 from 2 to 12 has probability (6−|𝑡−7|)/36.
Proof. The 36 ordered pairs are equally likely. The pairs with total 𝑡 are (𝑎,𝑡−𝑎) for every 𝑎 from 1 to 6 with 1≤𝑡−𝑎≤6. For 𝑡≤7 that is 𝑎=1,…,𝑡−1, which is 𝑡−1=6−(7−𝑡) pairs. For 𝑡>7 it is 𝑎=𝑡−6,…,6, which is 13−𝑡=6−(𝑡−7) pairs. ∎

A double, two dice showing the same number, lets the player roll again after their move. Three doubles in a row send the token to Silk Board instead.

Proposition 1 (Rolls per turn). A turn has on average 1+1/6+1/36=1.1944 rolls.
Proof. Every turn has a first roll. It has a second exactly when the first is a double, which has probability 6/36=1/6, and a third exactly when the first two are doubles, probability 1/36. A third double ends the turn at Silk Board, so there is never a fourth roll. The expected number of rolls is the sum of the probabilities that each roll happens. ∎

odds.ts counts each of these rolls as one move, MOVES_PER_TURN. A third double moves the token to Silk Board without landing anywhere that charges rent, so this overcounts by a small amount, 1/216 of a move per turn.

2.2 The board as a Markov chain

Where a token goes next depends only on where it is now, the dice and the cards. It does not depend on how the token got there. A process with this property is a Markov chain, and its long-run behaviour can be computed exactly.

Definition 1 (The board’s chain). The states are the 39 spaces where a move can end, which is every space except “Stuck in traffic”, which sends the token straight on to Silk Board. For states 𝑖 and 𝑗, 𝑃𝑖𝑗 is the probability that one move from 𝑖 ends on 𝑗, after the dice, any card drawn on the way and “Stuck in traffic”. A distribution 𝜋 over the states is stationary if 𝜋𝑃=𝜋. One more move then leaves it unchanged.

odds.ts builds 𝑃 in three steps. Each roll total moves the token that many spaces. On a card space, each card in the deck is drawn with equal chance, and the card may move the token again or send it to Silk Board. “Stuck in traffic” and the cards that say so send it to Silk Board. Three simplifications keep the chain small, and each is small next to the dice. Cards are drawn uniformly rather than in the deck’s shuffled order, which no player knows anyway. Doubles count through the average number of moves per turn (Proposition 1). A token at Silk Board is taken to leave on its next roll.

Theorem 1 (Where tokens end up). The chain has exactly one stationary distribution 𝜋. From any starting space, the distribution of the token after 𝑘 moves approaches 𝜋 as 𝑘 grows, and the distance shrinks at least geometrically in 𝑘.
Proof. figures.ts multiplies 𝑃 by itself and finds that every entry of 𝑃3 is positive. So within 3 moves, any space can lead to any other. Let 𝛿>0 be the smallest entry of 𝑄=𝑃3 and 𝑛=39 the number of states. Then 𝑄=𝑛𝛿𝑈+(1−𝑛𝛿)𝑅, where 𝑈 is the matrix with every entry 1/𝑛 and 𝑅 is another stochastic matrix. For two distributions 𝜇 and 𝜈, 𝜇𝑈=𝜈𝑈, so ‖𝜇𝑄−𝜈𝑄‖≤(1−𝑛𝛿)‖𝜇𝑅−𝜈𝑅‖, which is at most (1−𝑛𝛿)‖𝜇−𝜈‖ in total variation distance. So 𝑄 shrinks every distance by the factor 1−𝑛𝛿<1, and by Banach’s fixed point theorem it has one fixed distribution, which is 𝜋, with ‖𝜇𝑄𝑚−𝜋‖≤(1−𝑛𝛿)𝑚. Since 𝑃 never increases total variation distance, the same bound holds for 𝜇𝑃𝑘 with 𝑚=⌊𝑘/3⌋. This is the argument of Doeblin’s condition, as in Levin, Peres and Wilmer, Markov Chains and Mixing Times, Theorem 4.9. ∎
The line is the total variation distance between where a token can be after 𝑘 moves from Majestic and 𝜋. It is half the sum, over spaces, of the gap between the two probabilities: 1 for distributions with nothing in common, 0 for equal ones. After one move it is 0.65, after ten 0.12 and after thirty 0.003. Tokens forget where they started within a few laps of the board.

odds.ts finds 𝜋 by starting from the uniform distribution and multiplying by 𝑃 two hundred times, which Theorem 1 guarantees converges. Rent, though, is paid on landings, not on where a move ends. A card space is landed on, and so is the space a card then sends the token to. So LANDINGS is 𝜋 pushed through a second matrix that counts every landing of a move. Its entries add up to 1.047, a little over 1, because about one move in twenty lands twice.

Figure 2: The share of all moves that land on each space, from the stationary distribution. The numbers are percentages of moves.

The differences are real but modest. The most visited property is landed on about 1.47 times as often as the least visited. Whitefield is the most landed-on property. It is six spaces past Silk Board, where tokens collect, and a Kismat card sends tokens straight there. Majestic and the metro lines also gain from cards that send tokens to them. Ash and Bishop computed the same kind of distribution for the classic board in 1972.

The chain is a model, so it is worth checking against play. In 80 games between Medium computers, the game counted 14,961 landings. Each space’s share of them is within 0.5 points of the chain’s share. The largest gap, 0.42 points, is at Kismat (22), well within what so few landings per space leave to chance.

Figure 3: Where a token can be after each move. Pick a starting space on the board, then make moves one at a time and watch the probabilities spread out and settle. The long-run button shows the stationary distribution they settle on. The figure runs odds.ts’s own matrix.

3 Rent and the value of a group

How much is a property worth as rent?
The bars are the rent at KR Puram, priced at ₹1.6 Cr, with its whole group owned and with each number of flats. The first bar is the doubled rent of a whole group with no flats. The rent rises steeply. The third flat adds ₹3.22 Cr, while the first adds ₹64 L.

Every locality’s rent table follows the same pattern, from its price. A tower rents for about 4.8 times the price, and the flats rent for 11%, 33%, 75% and 88% of the tower. So the rent is convex in the number of flats. Each of the first three flats adds more than the one before.

Definition 2 (Rent per opponent move). A property’s rent per opponent move is 𝑟𝑖=ℓ𝑖⋅𝑅𝑖, the share of moves that land on it (Figure 2) times the rent due there. Over 𝑚 moves by opponents, its owner expects 𝑚⋅𝑟𝑖 in rent.

With four players, each player sees three opponents move about 3.58 times per round. That makes rent per opponent move the natural unit for comparing a flat’s cost with what it brings in.

Figure 4: For each group, the rent per opponent move gained by each step of building on the whole group, per lakh the step costs: first, second, third and fourth flat, then the tower. The third step, darker, earns the most in every group.
Proposition 2 (The third flat earns the most). In every group of the board, the third round of flats, one on each locality, adds more rent per opponent move per lakh spent than any other round of building.
Proof. This is a fact about the board’s numbers rather than a general law. figures.ts computes the gain of each step for every group from the rent tables and the landing shares, and the third step is the largest in all 8 groups (Figure 4). It follows from the shape of the tables. The third flat takes a locality from 33% to 75% of its tower rent, the largest jump, and every flat costs the same. ∎

So a group is worth far more than the sum of its parts, and most of that worth is unlocked at three flats. For the North group, owning it whole with three flats on each locality earns 37.8 lakhs per opponent move, against 1.24 for owning it whole with none. This is why red, holding two of the North localities, pays well for the third (Section 7). The analyses of the classic board by Ash and Bishop, and later ones of return on investment per group, reach the same conclusion, that returns jump at three buildings.

4 The hand-made judge

How can a formula turn a position into every player’s chance of winning?

The Medium computer judges a position with evaluate.ts. The formula gives each player a strength in lakhs, a rough measure of what that player is worth over the rest of the game. It then turns the strengths into chances that add up to 1.

Figure 5: Each player’s strength at the example position, built from its terms in lakhs, with the total and the chance it gives. Worth dominates; the rest decides the order.
Table 1: The eight numbers parts in evaluate.ts computes for each player, in lakhs or lakhs per opponent move.
In wordsIn symbols
worth: cash, property at its price (half if mortgaged), buildings at half their cost𝑊
rent per opponent move from everything owned (Definition 2)𝑟
what partly owned groups would earn whole with three flats, times the share owned squared, halved if a rival holds part𝑔
what whole groups would still gain by building to three flats, and what that costs𝑏, 𝑐
rent expected on the next roll, and the shortfall of cash against the worst rent it could bring𝑑, 𝑠
the price of unowned property within reach of the next roll𝑜
Table 2: How strengths in evaluate.ts weighs the parts into a strength, for 𝑛 players still in.
In wordsIn symbols
the horizon: 18 rounds, or the rounds left if fewerℎ
opponent moves the rent is counted over𝑘=(𝑛−1)⋅1.194ℎ
what building would still add, if positive𝐵=max(0,𝑘𝑏−𝑐)
worth and rent to come𝑥=𝑊+𝑘𝑟
plus the promise of groups and of building+𝛾𝑘𝑔+𝛽𝐵
minus the risk of the next roll, plus buying chances−𝑑−𝜎𝑠+𝜔𝑜

With four players and no end in sight, 𝑘=3⋅1.194⋅18=64.5: rent counts for 18 rounds of everyone else’s moves. The weights are 𝛾=0.12, 𝛽=0.35, 𝜎=0.6 and 𝜔=0.08, tuned by playing the evaluator against itself across setups. At the example position nobody owns a whole group, so the building term is zero for everyone. Blue’s lead comes from its groups term, since it owns two of the three South localities.

The strengths become chances through a softmax.

Definition 3 (Softmax with a temperature). Given strengths 𝑥1,…,𝑥𝑛 of the players still in and a temperature 𝑇>0, player 𝑖’s chance of winning is

𝑝𝑖=𝑒𝑥𝑖/𝑇∑𝑗𝑒𝑥𝑗/𝑇.

Medium sets 𝑇=max(50,0.35𝑀) in lakhs, where 𝑀 is the mean strength of the players still in.

Proposition 3 (Chances that do not depend on the size of the money). The chances add up to 1, adding the same amount to every strength leaves them unchanged, and so does multiplying every strength by the same factor 𝑎>0 when 𝑇 is proportional to the mean strength.
Proof. The numerators add up to the denominator. Adding 𝑐 to every 𝑥𝑗 multiplies every numerator and the denominator by 𝑒𝑐/𝑇. Multiplying every 𝑥𝑗 by 𝑎 multiplies 𝑀, and so 𝑇, by 𝑎 (while 𝑇 is above its floor of 50), which leaves every ratio 𝑥𝑗/𝑇 unchanged. ∎

The second property is why the temperature follows the money. Early in a game every player is worth about ₹15 Cr, and later the totals grow with rent and building. A fixed temperature would make the same relative lead look decisive late in a game and negligible early. At the example position 𝑇=700.5, and red’s chance is 18.5%.

The formula had to be written with care for one property of rent. It once credited a whole group with its future three-flat rent at the average gain per flat. Rent is convex, so the first flat added less rent than that credit, and every flat looked like a loss, so the evaluator never built. It now counts what is left to gain from each locality’s current rent, and only a share of it.

Proposition 4 (A flat raises the strength). Let a whole group have no mortgages, room to build, and a remaining building gain larger than its cost (𝑘𝑏>𝑐). Building one flat costing 𝑐𝑓 on a locality with landing share ℓ, where it raises the rent by Δ𝑅, changes the strength by

Δ𝑥=(1−𝛽)𝑘ℓΔ𝑅−(1/2−𝛽)𝑐𝑓,

with 𝛽=0.35 the building weight. So a flat raises the strength when its rent over the horizon exceeds about 0.23 times its cost.

Proof. The flat moves ℓΔ𝑅 from the building term to the rent term. The rent part 𝑟 rises by ℓΔ𝑅 and 𝑏 falls by the same, while 𝑐 falls by 𝑐𝑓. The rent term gains 𝑘ℓΔ𝑅 and the building term loses 𝛽(𝑘ℓΔ𝑅−𝑐𝑓). Worth falls by 𝑐𝑓/2, because the cash paid is 𝑐𝑓 and the flat counts at half its cost. Adding these gives Δ𝑥. ∎

5 Deciding by trying actions

How does one judge make every kind of decision?

The computer never needs to know what an action does. It asks the rules. For each action it could take, it copies the game, applies the action with the same function that runs the real game, act in rules.ts, and asks the judge for every player’s chance of winning in the result. It plays the action that leaves its own chance highest. A position judged just after an action, before any dice, is called an afterstate. TD-Gammon judged backgammon moves the same way, and Sutton and Barto’s Reinforcement Learning describes the method.

This design is what lets one computer play every setup. A shortage auction, a tax on worth, Cubbon Park’s pot or a bankruptcy rule changes what act does, and the judge sees the result. Nothing about the rules has to be learned or written twice.

Algorithm 1: How a computer decides. This is decide in src/games/silk-board/decide.ts; the computer calls it again after every action, so a turn of several builds is several calls.
Require: a position 𝑠 where player 𝑝 must act; a judge 𝐽 giving every player’s chance; margins 𝜇=0.002 and 𝜇𝑡=0.01
Ensure: 𝑝’s action
1if a trade is offered to 𝑝 then return accept, a counter-offer or declineSection 7
2if an auction is under way then return a bid up to the reservation price, or passSection 6
3if 𝑝 is in debt then return the sale or mortgage that costs 𝑝 the least chance
4if 𝑝 landed on an unowned space then return buy or auctionSection 6
5if it is time to roll then return roll, or leave Silk Board early if that is worth 𝜇 more
6𝐶← every build, sale, mortgage and redemption the rules allow 𝑝 now
7if |𝐶|>5 then 𝐶← the 5 that Medium’s evaluator rates bestHard only
8𝑎∗←argmax𝑎∈𝐶𝐽(act(𝑠,𝑎))𝑝each tried on a copy
9if 𝐽(act(𝑠,𝑎∗))𝑝>𝐽(𝑠)𝑝+𝜇 then return 𝑎∗
10if 𝑝 has made no offer this turn then return the best offer that gains both sides 𝜇𝑡, if any
11return end the turn
1The optionsAlgorithm 1
⋮
5if it is time to roll then return roll, or leave Silk Board early if that is worth 𝜇 more
6𝐶← every build, sale, mortgage and redemption the rules allow 𝑝 now
7if |𝐶|>5 then 𝐶← the 5 that Medium’s evaluator rates best
⋮
At turn 33, blue has rolled and moved. It owns the whole South group and could build on any of it, mortgage any property with no buildings in its group, or redeem a mortgage. That makes 8 options. The bars are Medium’s evaluator’s chance for blue after each one.
2The shortlistAlgorithm 1
⋮
6𝐶← every build, sale, mortgage and redemption the rules allow 𝑝 now
7if |𝐶|>5 then 𝐶← the 5 that Medium’s evaluator rates best
8𝑎∗←argmax𝑎∈𝐶𝐽(act(𝑠,𝑎))𝑝
⋮
Hard keeps the 5 options Medium’s evaluator rates best, in colour, and drops the grey ones. The three mortgages of South localities would stop blue building there, and the evaluator drops them at once.
3The network rates the shortlistAlgorithm 1
⋮
7if |𝐶|>5 then 𝐶← the 5 that Medium’s evaluator rates best
8𝑎∗←argmax𝑎∈𝐶𝐽(act(𝑠,𝑎))𝑝
9if 𝐽(act(𝑠,𝑎∗))𝑝>𝐽(𝑠)𝑝+𝜇 then return 𝑎∗
⋮
The network rates the 5 that are left. It is less optimistic for blue than the evaluator. Its best option is a flat on Rajajinagar, ahead of the next by 0.01 points of win chance. The three flats are worth almost the same, and either judge would build.
4Compare with doing nothingAlgorithm 1
⋮
8𝑎∗←argmax𝑎∈𝐶𝐽(act(𝑠,𝑎))𝑝
9if 𝐽(act(𝑠,𝑎∗))𝑝>𝐽(𝑠)𝑝+𝜇 then return 𝑎∗
10if 𝑝 has made no offer this turn then return the best offer that gains both sides 𝜇𝑡, if any
⋮
Building beats ending the turn by more than the margin of 0.002, so blue builds. Then it decides again from the new position, and stops once nothing beats doing nothing.

The margin keeps the computer from acting on differences smaller than the judge can tell apart. Without it, the computer could mortgage a property on one call and redeem it on the next as the judge’s numbers wobble, paying 10% interest each time.

5.1 Why a shortlist

The network costs more than the evaluator. On the example position one network judgement of every player takes about 15 times as long as the evaluator’s, on the machine that built this companion. Hard therefore lets the evaluator shortlist the owner actions and asks the network only about the best 5. This works because the network is a correction to the evaluator (Section 9), so the two mostly agree on which options are good.

figures.ts checked the shortlist over 16 games between Hard computers, at every owner decision with more than 5 options, 3,068 of them. The network’s favourite option was in the shortlist in 80% of them. More to the point, rating every option instead would have changed what Hard did in only 102 decisions, 3.3%. Most of the network’s favourites that the shortlist misses are not worth doing anyway, because they do not beat ending the turn by the margin.

Offers are the exception. Hard searches for offers with the network itself (Section 7). Searching them with the evaluator and only confirming the result with the network made Hard weaker, because an evaluator’s search finds the trades the evaluator likes, and most of the network’s advantage over Medium is in which trades it offers.

6 Buying and bidding

When should a computer buy, and how high should it bid?

When a player lands on an unowned property, buying it is not the only alternative to leaving it. If they decline, everyone bids for it, and a rival may get it for less than its price. So the computer compares owning it at its price with the most likely result of an auction, which it takes to be the richest other player owning it at 70% of its price. It buys only if owning it is worth at least as much.

At turn 36, red landed on the Pink Line, priced at ₹2 Cr, with ₹8.02 Cr in hand, and declined. In red’s judgement, paying full price for a single metro line left it worse off than letting the richest rival have it cheaply.

6.1 The reservation price

Definition 4 (Reservation price). In an auction, let 𝑊𝑝(𝑥) be player 𝑝’s chance of winning the game if 𝑝 wins the lot at price 𝑥 and nobody bids again, and 𝐿𝑝 their chance if they drop out now. 𝑝’s reservation price is the highest 𝑥 with 𝑊𝑝(𝑥)≥𝐿𝑝, the most that winning is still worth.

The computer works out 𝐿𝑝 by playing the rest of the auction out on a copy. If it drops out, the current leader takes the lot at the current bid, or, if nobody has bid yet, the next bidder takes it at a discount. It then finds the reservation price by bisection: it keeps a price 𝑙 where winning is worth it and a price ℎ where it is not, tries the price halfway between, and keeps whichever half still has one of each.

Proposition 5 (What bisection guarantees). Starting from 𝑙, the lowest legal bid, with 𝑊𝑝(𝑙)≥𝐿𝑝, and ℎ, the player’s cash, bisection ends with a price 𝑙 where 𝑊𝑝(𝑙)≥𝐿𝑝, within 2 lakhs of a price where winning is judged worse, after at most ⌈log2ℎ⌉ judgements. If 𝑊𝑝 falls as the price rises, 𝑙 is the reservation price to within 2 lakhs.
Proof. Each step keeps 𝑊𝑝(𝑙)≥𝐿𝑝>𝑊𝑝(ℎ), because the midpoint replaces whichever end it agrees with. Each step halves ℎ−𝑙, so after ⌈log2ℎ⌉ steps the gap is at most 2. If 𝑊𝑝 is falling, every price at or below 𝑙 is worth winning and every price at or above ℎ is not, so the reservation price is in [𝑙,ℎ). ∎

The first part holds whatever the judge says. The computer never bids a price at which its own judge says winning is worse than dropping out. The computer does not bid its reservation price at once. It raises by a twentieth of the lot’s price, at least 10 lakhs, while the next bid is still below its reservation price. Auctions between computers then take a few rounds instead of hundreds.

In Figure 6, the reservation prices at the first round of bidding were red ₹1.01 Cr, blue ₹1.22 Cr, green ₹3.93 Cr and yellow ₹2.89 Cr. Green values the line most, because it already owns the Purple Line, and a second line doubles the fare at both. The bidding went up in steps of ₹10 L. After 27 bids, green won the line for ₹2.7 Cr. Red, which had declined to pay ₹2 Cr, dropped out first.

Figure 6: The auction for the Pink Line, with each player’s chance of winning the game if they win the line at each price (the falling curves) and if they drop out (the flat lines in a lighter shade), at their first turn to bid. A dot marks where they meet, the reservation price. On the page the network computes them; choose a bidder to watch the bisection find their price.

7 Trading

How does a computer find a trade that both sides accept, and should it?

Trades are where a game of Silk Board is won. Most groups are split between players after the first laps, and only a trade can complete one. A trade must leave the other player better off too, or they will not accept it. So the computer has to judge the trade from both sides.

The judge already does this. It gives every player’s chance, so the computer can ask how a trade changes its partner’s chance as easily as its own. It assumes the partner judges the way it does, which is exactly true when the partner is another Hard computer.

Proposition 6 (A trade both like costs the others). For any trade between 𝑝 and 𝑞, with chances judged before and after, Δ𝑝+Δ𝑞=−∑𝑟≠𝑝,𝑞Δ𝑟.
Proof. The chances add up to 1 before and after the trade (Proposition 3), so their changes add up to 0. ∎

So when both sides of a trade gain, the other players pay for it. A trade that completes a group for one player is bad news for everyone the group’s rent will come from.

7.1 Searching for an offer

The computer looks for an offer once a turn, after its move. For each other player it lists what it might ask for, which is that player’s pieces of groups the computer already has part of. It lists what it might give: nothing, that player’s missing pieces of their own groups, or a lone property of its own. For each pair of asks and gives, the cash is the unknown. More cash to the partner raises the partner’s gain, so bisection finds the least cash that gives the partner the trade margin of 0.01, in their own judgement. Of all these offers, the computer keeps the one that gains it the most, if that gain is also at least the margin.

Red’s best offer is Marathahalli and ₹2.32 Cr for green’s KR Puram. The lines are each side’s gain in points of win chance, judged by the network, if the cash red adds were each amount from −₹4 Cr to ₹8 Cr. The line for red falls as red pays more, and the line for green rises. Negative cash means green pays. The grey line is the margin. The dashed line is the cash the search settled on, where green’s gain first clears the margin.
1Try ₹10 L
Red’s search knows the answer lies between −₹11.25 Cr and ₹11.45 Cr, and tries the middle, ₹10 L. There green’s gain would be −5.9 points, which falls short, so more cash is needed.
2Try ₹5.78 Cr
Red’s search knows the answer lies between ₹10 L and ₹11.45 Cr, and tries the middle, ₹5.78 Cr. There green’s gain would be +15.2 points, which clears the margin, so less cash may do.
3Try ₹1.52 Cr
Red’s search knows the answer lies between ₹10 L and ₹2.94 Cr, and tries the middle, ₹1.52 Cr. There green’s gain would be −1.5 points, which falls short, so more cash is needed.
4Try ₹2.28 Cr
Red’s search knows the answer lies between ₹2.23 Cr and ₹2.32 Cr, and tries the middle, ₹2.28 Cr. There green’s gain would be +0.9 points, which falls short, so more cash is needed. After 9 tries the bracket is under 5 lakhs wide, and the offer pays its top end, ₹2.32 Cr.
Figure 7: Every player’s chance of winning, judged by the network, before red’s offer and after green accepts it, with the change in points.

The trade completes the North group for red, and its chance rises by +14.8 points to 37.3%. Green gains +1.0 points, just over the margin, as the search intended. Blue and yellow pay for both, as Proposition 6 requires, with changes of −10.1 and −5.8 points.

7.2 Answering

A computer offered a trade accepts it when its chance after accepting beats its chance after declining by the margin. Both are judged at the same point of the game, with play back with the proposer, so only the trade differs. Green’s chance after accepting is 24.78%, and after declining 23.73%, a gain of +1.05 points, just over the margin of 0.01, so green accepts. If an offer falls short, the computer may counter with the same properties and its own price for them, found by bisection the same way. An exchange allows 3 counter-offers.

Two Hard computers judge a trade identically, so an offer one makes is an offer the other accepts. In 16 games between Hard computers, all 82 offers were accepted. A person is under no such obligation. The computer then offers what a player who judges like its network would accept, and a person may decline. Two rules keep it from pestering: one offer a turn, and the same request to the same player at most twice a game.

Figure 8: Red’s offer for KR Puram, judged by the network on the page. Slide the cash red adds and watch both sides’ gains and every player’s chance. Green accepts where its gain clears the margin.

8 Building and the bank

What changes when the bank runs out of flats?

Building follows three rules from the classic game. A player builds only on a whole group with no mortgages. Building is even. No locality may get more than one flat ahead of the rest of its group, and selling is even the same way. Buildings come from the bank’s stock, by default 32 flats and 12 towers. A tower takes the place of four flats, which go back to the bank, and breaking a tower back into flats needs four flats in the bank.

Proposition 7 (The stock is a limit). With 32 flats, at most 10 localities can hold three flats at once, out of the board’s 22.
Proof. Three flats on each of 𝑚 localities use 3𝑚 flats, so 3𝑚≤32. ∎

Since the third flat is the most profitable step (Section 3), the bank’s stock decides how many groups can reach it, about three groups’ worth. Towers ease the limit, since each one returns four flats. So does holding the stock, which is a classic tactic. Four flats on each locality and no towers keep the bank’s flats from everyone else.

When the bank cannot supply everyone who could build, the classic rule auctions each of its last flats or towers among them, opening at the building’s price. Setup can choose instead to let whoever builds first have it. A computer that tries a build which starts such an auction judges it as winning that auction at the opening price, the best case, and the bidding then tests it. It also tries each such build only once a turn. Without that rule a computer could build, start the auction, find that winning was worth less than its judge had hoped, pass, and then build again, forever.

Mortgages are the other source of money. A mortgage raises half a property’s price, and paying it back costs the loan plus 10% interest. A property traded while mortgaged costs its new owner 10% of the loan at once. When a player owes more than their cash, the computer sells or mortgages whatever costs it the least chance, one step at a time, until it can pay, and goes bankrupt only when nothing is left. Every one of these is an action act applies, so Algorithm 1 handles them all without special rules.

9 The value network

What does Hard’s network see, and why is it a correction to Medium?

The Medium evaluator is a reasonable judge, but its weights are guesses tuned by hand, and it knows nothing its formula does not say. Hard judges with a neural network that learned from 432,480 games of self-play (Section 10). The network does not replace the evaluator. It adds a learned correction to the evaluator’s judgement of each player.

9.1 What it sees

Table 3: The network’s 959 inputs, for one player, the viewer. Players sit in six slots in turn order from the viewer, so one network serves two to six players; slots nobody uses stay at 0. features.ts defines them.
In wordsIn symbols
per ownable space (28): which slot owns it; flats as a thermometer (at least 1, 2, 3, 4, a tower) and mortgaged, split by whether the viewer owns it28×18=504
per player slot (6): in the game; cash as a thermometer and a number; position (40); at Silk Board; holds a pass; whole groups; Medium’s eight parts and its judgement of the player6×67=402
the game: whose decision, whose turn, the phase, flats and towers left in the bank, the park’s pot, players left, rounds left42
the setup: how the game ends, the park, the shortage rule and both bankruptcy rules11

A thermometer turns a number into on-off inputs, one per threshold it passes. Cash of ₹6 Cr switches on the inputs for at least ₹50 L, ₹1 Cr, ₹2 Cr, ₹3 Cr and ₹5 Cr. Most inputs are on-off, and only about 95 of the 959 are non-zero for a position, so the network adds up the weights of those few. It also sees Medium’s own parts and judgement of every player, so it never has to rediscover what the formula already knows.

9.2 What it computes

Definition 5 (Hard’s judge). For the position seen by player 𝑖, the network computes a hidden layer of 64 units, ℎ=max(0,𝑊1𝑥𝑖+𝑏1), and a correction 𝑐𝑖=𝑤2⋅ℎ+𝑏2. Player 𝑖’s strength is 𝑧𝑖=𝑚𝑖+𝑐𝑖, where 𝑚𝑖 is Medium’s softmax exponent for 𝑖, 𝑥𝑖/𝑇 in Definition 3, minus its mean over the players still in. The network runs once per player still in, and the chances are a softmax, 𝑝𝑖=𝑒𝑧𝑖/∑𝑗𝑒𝑧𝑗.
Proposition 8 (A silent network is Medium). If the output weights 𝑤2 and 𝑏2 are 0, the network’s chances are exactly Medium’s.
Proof. Then 𝑐𝑖=0 for every player, so 𝑧𝑖=𝑚𝑖. Medium’s chances are the softmax of 𝑥𝑖/𝑇, and 𝑚𝑖 differs from 𝑥𝑖/𝑇 by the same mean for every player, which does not change a softmax (Proposition 3). ∎

A new network starts with 𝑤2=0, so it plays exactly like Medium before it has learned anything. Training then penalises large corrections, so where the network has seen few positions it stays close to Medium.

Figure 9: Hard’s judgement of the example position, player by player, with Medium’s centred exponent, the network’s correction, and the chances from each. The last column is what the game shows (Section 13).

At the example position the network disagrees with Medium in a clear direction. It raises red by 0.18 and lowers blue by 0.12. Most of blue’s lead in Medium’s judgement came from its groups term (Figure 5), and the network, trained on how games like this one ended, trusts that term less. Red’s chance rises from 18.5% to 22.5%, and blue’s falls from 35.9% to 32.6%.

Proposition 9 (The cost of a judgement). With 𝑎 inputs on, one player’s view costs 𝑎⋅𝐻+𝐻 multiply-adds for 𝐻 hidden units.
Proof. 𝑊1𝑥=∑𝑗:𝑥𝑗≠0𝑥𝑗𝑊1(𝑗), so only the 𝑎 columns of inputs that are on are added, 𝐻 numbers each, and the output adds 𝐻 more. ∎

Here that is 6,144 per view, four views a position. The weights are stored by input, each input’s 64 weights side by side, so the sum reads memory in order. They ship as 16-bit integers with one scale per input, which keeps every output within 0.0001 of the trained network’s and makes the file 178 kilobytes.

Figure 10: The example position, judged on the page by both judges. Click a space to change its owner, or set how many rounds a game would have left, and watch every player’s chance move.

9.3 Why not learn from scratch

The first networks had no evaluator underneath. They learned the whole judgement, starting from a copy of Medium’s. They reached about Medium’s strength and stopped there. Two reasons fit. First, the decision layer asks about dozens of positions that never occur in play, a bid at every price, every mortgage, every trade. A network is never corrected on those, and choosing the option it rates highest picks out its overestimates. Thrun and Schwartz described this bias of choosing by an approximate value in 1993. Second, a network learning from scratch could not easily see what Medium values most, groups one short of whole and the gain still to come from building.

The correction design answers both. Where the network has learned nothing, it is Medium, which is sound. It only has to learn where Medium is wrong. Johannink and colleagues, and Silver and colleagues, both in 2018, called this residual learning on top of a hand-made controller. The first corrections beat Medium within a few rounds of training.

10 Learning by self-play

Where do the network’s weights come from?

tools/train.ts trains the network in rounds, each a few hundred games long:

Play
Worker threads play games on setups drawn from everything the setup screen offers. Most seats are Hard with the network being trained, with a little noise on its values so play does not repeat itself.
Record
At the end of every turn, and at a share of other decisions, the position is recorded from every player’s view.
Fit
The weights move to bring the network’s chances nearer the targets, by minibatch gradient descent.
Check
Every few rounds, Hard plays Medium on part of the arena’s setups (Section 11), and candidates are measured head-to-head before one ships.

10.1 Targets

At the end of a game the winner is known. A game stopped at the turn cap shares the win by a softmax over net worth, since being a little behind at an arbitrary stopping point is not a clear loss. Each recorded position then gets a target, worked backwards from the end, that blends what the network said at the next recorded position with the target there.

Definition 6 (The λ-return of win chances). Let 𝑣0,…,𝑣𝑇 be the network’s chance vectors at a game’s recorded positions and 𝑢 the outcome, a vector with 1 for the winner. The targets are 𝐺𝑇=𝑢 and 𝐺𝑡=(1−𝜆)𝑣𝑡+1+𝜆𝐺𝑡+1, with 𝜆=0.8.
Proposition 10 (Targets are chances). Every target 𝐺𝑡 is a vector of chances. Its entries are between 0 and 1 and add up to 1.
Proof. By induction backwards from 𝑇. 𝐺𝑇=𝑢 is a vector of chances, and so is each 𝑣𝑡+1. A weighted average of two vectors of chances with weights 1−𝜆 and 𝜆 that add up to 1 is again one. ∎
Figure 11: The example game, with every player’s chance of winning after each turn, judged by the network, in their colours, and red’s training targets for λ = 0.8 (dark). Red won (the dot). Its chance jumps at the trade (turn 24).

In Figure 11 the targets run ahead of the network’s values towards the result. A target 𝑘 turns before the end gives the real result a weight of 𝜆𝑘, so with 𝜆=0.8 the result still counts 11% ten turns out and 0.1% thirty out. Further back the targets follow the network’s own later values. This smooths away the luck of later dice while still tying every target to how games really end.

10.2 Fitting

Proposition 11 (The gradient of the loss). For one position, let the loss be the cross-entropy ℓ=−∑𝑖𝐺𝑖log𝑝𝑖 plus the anchor 𝛼∑𝑖𝑐𝑖2, with 𝑝 the softmax of the strengths 𝑧𝑖=𝑚𝑖+𝑐𝑖. Then 𝜕ℓ/𝜕𝑐𝑖=𝑝𝑖−𝐺𝑖+2𝛼𝑐𝑖.
Proof. log𝑝𝑖=𝑧𝑖−log∑𝑗𝑒𝑧𝑗, so 𝜕log𝑝𝑖/𝜕𝑧𝑘=[𝑖=𝑘]−𝑝𝑘. So the cross-entropy’s derivative is −𝐺𝑘+𝑝𝑘∑𝑖𝐺𝑖, which is 𝑝𝑘−𝐺𝑘 because the targets add up to 1. Since 𝑧𝑘=𝑚𝑘+𝑐𝑘 with 𝑚𝑘 fixed, the same holds for 𝑐𝑘, and the anchor adds 2𝛼𝑐𝑘. ∎

So each player’s correction moves in proportion to how far its chance is from the target, and the anchor pulls it back towards zero, towards Medium. The gradient reaches every weight of the network through the chain rule, and Adam, an optimiser that scales each weight’s step by a running measure of its gradient’s size, takes the steps. Every worker thread fits its own positions on the same shared weights at once, without locks. With sparse inputs two threads rarely touch the same weight at the same moment.

10.3 What training needs

Training this network taught several lessons, each now part of how it is trained:

Opponents other than itself
A network that plays only copies of itself can improve against them while getting worse against everyone else. Its checks against Medium rose and then fell. A share of seats is played by Medium, and a share by frozen earlier networks.
A pool of proven networks
Frozen networks taken automatically every few rounds filled the pool with the drifting network itself. The pool holds only networks that beat the one before them head-to-head.
Honest measurements
The best of many noisy checks overstates the network it picks, as the luckiest of many coin-flippers looks skilled. A candidate ships only after it beats the shipped network head-to-head on fresh seeds.
Every table size
Two-player games were a small share of the sampled setups, and a network that improved at larger tables got worse one-on-one. Giving two players more weight fixed it. A bigger network, with twice the hidden units, did not play better.

The shipped network is round 1802 of training, after 432,480 games.

11 Measuring strength

How can you tell which computer is stronger, when the dice decide so much?

A single game says almost nothing. tools/arena.ts uses two arrangements that make every game count for more. A seed fixes the dice and both card decks’ shuffles, so two games with the same seed have the same luck. And each seed is played once per seat, with the computer under test in that seat and the other computer in all the rest, so good dice and the advantage of a seat fall on each player in turn.

Definition 7 (The arena’s score). For a seed, the computer under test wins some of the 𝑛 rotated games. Its score is that number of wins, the win rate divided by the even share 1/𝑛. A score of 1 is level, and 𝑛 is winning every game.
Proposition 12 (Identical players score exactly 1). If the computer under test and the other one are the same deterministic player, every seed scores exactly 1.
Proof. With identical players, the 𝑛 rotated games of a seed are the same game, so they have the same winning seat. That seat is the tested player’s in exactly one rotation. ∎

The Hard computer against itself scored exactly 1.00 over 12 games, as the proposition requires. This checks that the arena is fair.

Figure 12: Arena scores on classic four-player games, one seat against three. Hard against Medium, 1.53 ± 0.21 over 240 games; Medium against Easy, 3.10 ± 0.26 over 160 games; Medium against random, 3.42 ± 0.35 over 96 games; Easy against random, 0.90 ± 0.23 over 160 games. The margins are 95% confidence intervals; 1 is level.

Hard wins about 1.5 times its even share against three Medium computers. Medium is far stronger than Easy. The “random” player is not as weak as its name. It buys almost everything it can afford, bids up to a little over the price, and builds now and then. Easy is no better than it. Neither builds well, so their games are long, 810 player turns on average, against 161 when Hard plays Medium. Many reach the turn cap and are decided by net worth.

The arena runs a whole suite of setups, from two to six players, with every bank, park and bankruptcy rule and timed games, including two setups that training never draws. It stops a setup early once its score is clearly above or below level.

12 Three ways to end

How does a computer play differently when the game is about to end?

A game of Silk Board ends in one of three ways, chosen at setup:

Last standing
Play goes on until every player but one is bankrupt. The survivor wins.
Timed
After a set number of minutes, the game ends at the end of the next turn, and the player with the highest net worth wins.
Rounds
After a set number of rounds, the player with the highest net worth wins. A round is over when every player still in has had a turn.

In the last two, net worth at the end decides everything, so rent that will come in after the end is worth nothing. A computer must know how much of the game is left. Both read it as rounds left, roundsLeft in ai.ts.

Definition 8 (Rounds left). In a game of 𝑅 rounds with 𝑛 players still in, after 𝑟 complete rounds and with 𝑗 of the players still in having played in the current round, the rounds left are 𝑅−𝑟−𝑗/𝑛. In a timed game they are the time left divided by 𝑛 times the pace of a turn, 15 seconds in headless games. A last-standing game has infinitely many.
Proposition 13 (Rounds left count down evenly). In a game of so many rounds, each turn lowers the rounds left by exactly 1/𝑛 while nobody goes bankrupt, and they reach 0 when the last round ends.
Proof. Within a round, a turn adds one player to 𝑗. The turn that completes a round moves play from the last seat to the first. Then 𝑟 rises by 1 and 𝑗 returns to 0, which lowers 𝑟+𝑗/𝑛 by 1−(𝑛−1)/𝑛=1/𝑛 again. When the last round is over 𝑟=𝑅 and 𝑗=0. ∎

Doubles do not count as extra turns. A player who rolls a double plays again within the same turn.

Rounds left enter both judges. Medium counts rent over at most 18 rounds, or the rounds left if fewer. The network sees whether the game ends on worth, a thermometer of the rounds left (at most 20, 10, 5 and 2), and the rounds left divided by 40. Timed games and games of so many rounds share these inputs, so to the network they are the same kind of ending.

Figure 13: The example position judged as part of a game of so many rounds, with each number of rounds left. Green has the highest net worth, ₹17.65 Cr, against ₹16.4 Cr, ₹16.65 Cr and ₹16.3 Cr.

Figure 13 shows what this does. With 40 rounds left the network judges the example position almost as it does with no end in sight. As the end nears, green, the richest player, becomes the favourite, at 51% with a quarter of a round left. Medium’s evaluator moves much less, to 29%. Its softmax temperature follows the money in play (Definition 3), so a lead of ₹1.25 Cr in worth looks small to it even when there is no time left to overturn it. The network learned the endgame from games that ended this way.

13 The win predictor

The game shows every player’s chance of winning. How honest are those numbers?

The game page shows each player’s chance of winning on their chip, with the change since their last turn, and a strip split by the players’ colours. A trade offer shows what accepting it would do to every player’s chance, as Figure 7 does. At the end of the game, a chart replays the chances over the whole game, as Figure 11 does. All of these come from winChances in outlook.ts: Hard’s network, with one adjustment.

The chances assume that every player plays equally well from here. The network judges the position, not the people. A beginner holding the best groups is given the chance a Hard computer would have with them.

13.1 Calibration

A forecaster is calibrated if, among all the times it says 30%, the event happens 30% of the time, and likewise for every other number. A reliability diagram checks this. It sorts every chance given into bins, 10% to 20%, 20% to 30% and so on, and plots each bin’s mean chance said against the share of those players who went on to win. A calibrated forecaster’s points lie on the diagonal.

npm run silk-board:calibrate measures this. It played 3,600 games on setups drawn from everything the setup screen offers, half with every seat Hard and half with each seat Easy, Medium or Hard at random. At the end of every turn it recorded both judges’ chances for every player still in, 677,228 positions in all.

The raw network, , lies a little off the diagonal in a consistent way. Players it gives 60% to 70% won 73% of the time, and players it gives under 5% won less often than it says. Its favourites are better than it thinks. After the temperature adjustment below, , the points sit on the diagonal. Each dot’s size shows how many chances fell in its bin.

Definition 9 (Scoring forecasts). For a position with chances 𝑝1,…,𝑝𝑛 and winner 𝑤:

  • the Brier score is ∑𝑖(𝑝𝑖−[𝑖=𝑤])2, from 0 for certainty about the right player to 2;
  • the log loss is −ln𝑝𝑤, 0 for certainty about the right player, and ln𝑛 for even chances;
  • the calibration error is the gap between chance said and share won in each bin of the reliability diagram, averaged with each bin weighted by how many chances it holds.
Proposition 14 (Honesty scores best). If the true chances are 𝑞1,…,𝑞𝑛, the expected Brier score of a forecast 𝑝 is ∑𝑖(𝑝𝑖−𝑞𝑖)2+∑𝑖𝑞𝑖(1−𝑞𝑖), which is smallest at 𝑝=𝑞.
Proof. Write 𝑦𝑖=[𝑖=𝑤], so 𝔼[𝑦𝑖]=𝑞𝑖 and 𝔼[𝑦𝑖2]=𝑞𝑖. Then 𝔼[(𝑝𝑖−𝑦𝑖)2]=𝑝𝑖2−2𝑝𝑖𝑞𝑖+𝑞𝑖, which equals (𝑝𝑖−𝑞𝑖)2+𝑞𝑖−𝑞𝑖2. Summing over 𝑖 gives the formula. The second sum does not depend on 𝑝, and the first is zero only at 𝑝=𝑞. ∎

A score with this property is called proper: a forecaster cannot improve it by saying anything other than what it believes. Log loss is proper too. Both reward two things at once, calibration and sharpness, telling the eventual winner apart early.

Figure 14: The judges’ scores over 677,228 positions from 3,600 games. Lower is better for the Brier score, the log loss and the calibration error (in percentage points); “favourite won” is how often the player given the highest chance won.

The network is better than Medium’s evaluator on every score but one. Its log loss is 0.559 against 0.585, and its favourite wins 76.4% of the time against 75.1%. Even chances, the forecast that knows nothing, have a log loss of 1.085. Yet the raw network is less calibrated than the evaluator, with 1.70 points of calibration error against 0.98. The network tells winners apart better, but says it with too little confidence. That can be fixed after the fact, and the evaluator’s weaker sharpness cannot.

How sure anyone can be depends on how far a game has gone. In the first quarter of a game the network’s favourite wins 51.5% of the time. In the middle half 79.0%, and in the last quarter 95.8%.

13.2 Temperature scaling

Definition 10 (Temperature scaling). Given chances 𝑝1,…,𝑝𝑛 and a temperature 𝑇>0, the scaled chances are

𝑝𝑖′=𝑝𝑖1/𝑇∑𝑗𝑝𝑗1/𝑇.

𝑇<1 makes them sharper, 𝑇>1 flatter, and 𝑇=1 leaves them unchanged.

Proposition 15 (Scaling the chances is scaling the strengths). If 𝑝 is the softmax of strengths 𝑧, then 𝑝′ is the softmax of 𝑧/𝑇.
Proof. 𝑝𝑖=𝑒𝑧𝑖/𝑍 for 𝑍=∑𝑗𝑒𝑧𝑗, so 𝑝𝑖1/𝑇=𝑒𝑧𝑖/𝑇/𝑍1/𝑇. The factor 𝑍1/𝑇 is the same for every player and cancels when the scaled chances are divided by their sum. ∎

So temperature scaling changes how far apart the network’s strengths are, not their order. The favourite stays the favourite, and only the confidence changes. Guo and colleagues found in 2017 that this single number calibrates modern neural classifiers well. outlook.ts applies it after the network, as sharpen, with 𝑇=0.85. The calibration run chose 𝑇 by trying every value from 0.50 to 4.00 in steps of 0.05 and keeping the one with the lowest log loss.

The line is the calibration error at each temperature. It is lowest close to where the log loss is lowest, at 𝑇=0.85, which brings the error from 1.70 to 0.69 points. The log loss falls from 0.5594 to 0.5558.

The best temperature is not the same everywhere. It is 1.00 in the first quarter of a game, 0.90 in the middle and 0.50 in the last quarter, where the network is right most often and most underconfident. One temperature for every position is a compromise, weighted towards the middle of games, where most positions are. Games of so many rounds were checked separately, 1,200 of them with 10 to 80 rounds. Their best temperature is 0.80, which brings the error from 1.50 to 0.38 points, close enough to share the value.

Why is the raw network underconfident? One possible reason, not tested here, is how it was trained. Its targets blend its own later chances with the result (Definition 6), and in a game where luck moves the lead, those blends are less extreme than the eventual outcomes. A judge trained towards them may learn to hedge.

Figure 15: The reliability diagram of the network’s chances at each temperature, from the calibration run. Slide the temperature and watch the bins move to the diagonal and back, with the scores of Definition 9.

13.3 The position, not the player

Figure 16: At tables with Easy, Medium and Hard computers together, the mean chance the network gave players of each level, and how often they won.

At mixed tables the network gave Easy computers 17% on average, and they won 10% of the time. It gave Hard computers 42%, and they won 46%. The network cannot tell who is playing. It sees the position, and over the following turns the stronger player’s positions improve. This is the right behaviour for the page, where the chances are meant to describe the board and not to judge the people at it.

14 Easy, Medium and Hard

What exactly differs between the three levels?

All three levels run the same decision layer (Algorithm 1). They differ in the judge, the noise on its values, and whether they offer trades.

Easy
Judges with Medium’s evaluator, adds random noise of up to 4 points of win chance to every value it compares, and never offers a trade. It still answers offers.
Medium
Judges with the evaluator (Section 4), with no noise. It offers trades.
Hard
Judges with the network (Section 9), shortlisting owner actions with the evaluator, and searches for offers with the network.

Easy’s noise is the sum of two random numbers, so values near zero are more likely than values near 0.04. On the owner decision of Section 5, where the options are a few points apart, Easy builds on Rajajinagar in only 31% of 20,000 tries, and ends its turn without building in 6%. It never mortgages the South group there, because those options are worse by far more than the noise.