Out in the world

A fork costs four, and a cross six

A chain costs two boxes to decline and a loop four. A coin with three strings, every arm at least three boxes long, costs four — not because of any four-box cut, but because every opening cuts it into two chains and control is paid for once on each. A cross costs six, a five-armed star eight. And a single arm of one or two boxes makes a fork that does not hand control over at all.

Assumes: Two and four are not conventions · A coin with three strings is worth something

Two and four are not conventions took apart the two numbers that run through the Dots and Boxes endgame. A player in control who is handed an opened chain declines by leaving its last two boxes, because the cut that finishes a chain completes exactly two; a loop costs four, because its last two cuts complete four. Solved again with those numbers changed, hundreds of endgames changed winner. The fee is geometry, not convention.

That essay ended on the component the endgame theory does not name. Every chain and every loop has coins holding two strings each. A coin holding three — a fork, where three arms of boxes meet — is worth something rather than nothing in the impartial game underneath, and its endgame has never been described:

So the question with an answer is what the fee is for a fork: how few boxes can be left behind at the end of a branching component while still handing over the obligation. If it is two, the fork’s endgame is a chain’s and the value differences are about something else; if it is three or four, then the fee is a function of the component’s shape.

The answer is four, for a reason that is not the loop’s, and the reason predicts every other branching component.

A coin with 3 strings, arms 3/3/3. A strings-and-coins component whose central coin holds more than two strings, drawn as boxes with the ground shown as a node. Its Grundy value is computed from the same graph, and it is not the nought every chain and loop carries.
Fig. 1 A fork with three arms of three boxes: ten coins, twelve strings, the centre box holding three of them. Every chain and loop is worth nought in the impartial game; this one is too, and it is not a chain.

The measurement

The fee is a statement about control, so it has to be measured where control matters. Each component is put in front of one long chain of twelve boxes, which is the simplest board on which control is worth having: whoever is forced to open the long chain loses all twelve of it. One player — the opener — cuts a string of the component, because there is nothing else to do; the other — the controller — then plays the scoring game out, and so does the opener, both optimally, with no rule assumed about declining.

What comes out is a net score. If the controller keeps control, the opener ends up opening the long chain and the controller takes it, so the controller’s net is the component’s boxes, less twice what was left to the opener, plus twelve. The fee is what was left to the opener, read off that net, against whichever opening hurts the controller most. When the controller cannot keep control at any price up to the component’s own size, there is no fee; the component does not hand control over.

The long chain is never built as strings. When the component’s strings run out the player to move must open the long chain and the other player takes all of it, which is exactly what a lone long chain does, and it lets the component be large. The sweep was repeated in front of a long chain of eight, and every fee is identical.

Chains and loops, as a check

The fee for keeping control, component by component. Chains, loops, forks, crosses and a five-armed star, each opened in front of a long chain and solved as a scoring game. The boxes the controller must leave to the opener to keep control are two for a chain, four for a loop and two per arm after the first for a star, at every possible opening.
Fig. 2 Every component in the sweep with the fee its controller pays. Chains of three to six boxes cost two; loops of four, six and eight cost four; forks cost four, crosses six and a five-armed star eight, at every opening.

The first seven rows are the numbers the endgame theory already uses, and they come out of the scoring solver without being put in. Chains of three, four, five and six boxes cost two; loops of four, six and eight cost four. And every opening gives the same fee: the four strings of a chain of three, the eight strings of a loop of eight, it does not matter which the opener cuts. That is the well-known shape of the endgame, and it is worth having it reproduced by a method that knows nothing about chains, because it is the same method that measures what comes next.

The forks are the eight rows after them. Every fork whose arms all hold at least three boxes costs four, whether the arms are 3/3/3 or 4/4/4 or 3/3/5. The crosses cost six. The one five-armed star in the sweep costs eight. And again the opening does not matter: all twelve strings of the 3/3/3 fork give a fee of four, all sixteen of the 3/3/3/3 cross give six.

Why four

Four is a loop’s fee and the fork is not a loop, so it is worth finding where the four comes from. The line of play shows it directly.

The fee paid twice: a fork of 3/3/3, played out. The boxes taken by each side after one player opens a fork of three arms of three boxes in front of a long chain. The controller declines twice, two boxes each time, once at the end of the arm the opening cut free and once at the end of the chain the rest of the fork becomes.
Fig. 3 Who takes which boxes, in order, after the opener cuts the string between the centre and one arm of a 3/3/3 fork in front of a chain of twelve.

The opener cuts the string between the centre and one arm. That arm is now a chain of three with one end open, and the controller takes one box of it and declines the last two — the ordinary fee. The opener takes those two and must move again, and the only strings left are in the rest of the fork: the centre and the two remaining arms, which is a chain of seven boxes with both ends on the ground. Cutting into it opens it. The controller takes five and declines the last two — the ordinary fee, again. The opener takes those two, must move, and opens the long chain.

The fork has been paid for as two chains. It never behaved as anything else. The centre box held three strings only until the first cut, and after it there were two chains, one opened and one not, and the controller paid two for each. The other openings look different and come to the same thing. Cut the ground string at the end of an arm, and the controller takes the far box, then declines the two next to the centre by cutting the string that ties them to it — which leaves the centre holding two strings and the rest of the fork as the same seven-box chain. Cut inside an arm and the boxes on both sides of the cut come loose at once, but what is left attached to the centre is still a chain. The solver finds a fee of four at every one of the twelve strings: whatever the cut, the fork becomes an opened piece and an unopened chain.

That is a statement about forks of every size, and it predicts the rest of the table. A star with d arms, opened anywhere, becomes one opened arm and a star with d − 1 arms; that star is opened in turn and becomes one opened arm and a star with d − 2; and so on until two arms are left, which is a chain. That is d − 1 pieces, each declined for two: the fee of a star of long arms is 2(d − 1). A chain is a star with two arms and costs two; a fork three arms and four; a cross six; a five-armed star eight. Every row of the table agrees.

The fee grows with the arms. The boxes a controller must cede to keep control of a chain, a fork, a cross and a five-armed star, each with arms of three boxes, beside a loop. The fee is two, four, six and eight: two for each arm after the first.
Fig. 4 The fee against the number of arms, with a loop for comparison. Two for each arm after the first; the loop’s four has a different cause.

So the answer to the question as it was put is neither of the two it offered. The fork’s fee is not two, so its endgame is not a chain’s; and it is not a function of the component’s shape in any detailed sense either — not of the arm lengths, not of where it is opened. It is a function of how many pieces the component falls into, and the two in each piece is still the chain’s two. The loop’s four and the fork’s four are the same number reached by different arithmetic: one piece whose last cut completes four boxes, against two pieces whose last cuts complete two each.

One short arm, and there is no fee

The rows the table leaves out are the forks with a short arm, and they are the more surprising half of the answer.

Forks with a short arm keep control for the opener. Forks of three arms, each opened by the player who must move, in front of a long chain. When every arm holds three boxes or more the other player keeps control by paying four; when any arm is shorter, the opener has a cut that leaves them in control and the long chain theirs.
Fig. 5 Forks with arms of nought to three boxes, opened in front of a long chain. Only when every arm holds three boxes does the controller keep control; with any shorter arm, the opener’s best cut leaves the opener in control.

Of the twenty forks with arms of nought to three boxes, the controller keeps control on three. Two of them are degenerate — a single coin with three ground strings, and the same with one box attached — where keeping control means giving away the whole component. The third is 3/3/3. On every other fork, the opener has a cut that leaves the opener in control, and nets everything the long chain is worth.

The mechanism is the short chain’s. A chain of one or two boxes is the component in the endgame theory that does not hand over control: opened, the other player takes it whole and has to move, because declining a chain of two leaves nothing worth declining and a chain of one has no last two boxes at all. A fork with an arm of two can be opened so that the piece cut free is exactly that short arm, or so that the piece that remains has one. The opener chooses the cut that does so, the controller faces a short chain at the moment control is decided, and control passes.

That puts forks into the two classes the endgame theory already has for chains, with a different boundary. A chain is long when it holds three boxes; a fork is long when every arm does. The arms are what an opening cuts free, so each arm is held to the standard a chain is held to, and one short arm is enough for the opener to find.

A fee nobody chose

The sweep that established the chain’s two and the loop’s four did it by changing them and watching the endgame break.

The fee the geometry charges. The same endgames solved with the cost of declining changed. Two boxes on a chain and four on a loop are what a single cut and a pair of cuts complete; altering them changes the winner of a large share of positions, which is what says the law depends on them.
Fig. 6 The same chain-and-loop endgames solved with the cost of declining set to other numbers. Altering the fee changes the winner on a large share of positions, which is what says the two and the four are doing work.

Those were numbers fed into a model of the endgame, and the model could only ask what happens if they were different. The fork’s four was not fed in. It came out of a solver that plays strings and coins box by box and knows nothing about fees, declining or chains, and it came out the same at every opening and beside every length of long chain tried. It is the first fee in this endgame that was measured rather than derived, and what it measures is a count: how many times the controller has to decline before the obligation is safely handed back.

That changes how the two chain fees should be read as well. A chain’s two is the boxes its last cut completes, which is what the sweep above said. It is also the fee for a component that falls into one piece, and the loop’s four is the fee for one piece whose last cut is a double one. Put that way, every fee on the board is a sum over pieces of what each piece’s last cut completes, and the fork is simply the first component with more than one piece in it. Nothing about the fee was ever a convention; what the fork adds is that it is not even a property of a component, only of its pieces.

It also says why the endgame theory could afford to ignore forks for so long. On the boards people play, the endgame theory arrives late: by the time every surviving coin holds two strings the forks have usually been cut apart already, and a fork with three long arms needs ten boxes clear of the rest of the board, which is a large share of any board small enough to solve. A coin with three strings is common early and rare at the point where control is decided, and a fee that matters only at that point is a fee that seldom gets paid.

What the counting rule becomes

The endgame theory’s arithmetic for a board of long components is four boxes for every chain after the first: the controller nets the total less two surrendered and two not taken on every component but the last, where nothing is declined. With forks in the mix, the same rule holds with a fork counted as the pieces it falls into.

A fork that is opened before the end costs the controller the fee on both of its pieces — four surrendered, four not taken, eight boxes of margin. A fork opened last costs only the fee on its first piece, since nothing needs declining after the final piece: solved alone, with nothing behind it, the 3/3/3 fork costs two and the 3/3/3/3 cross four. So a fork is worth exactly as much to the margin as two chains, and the controller’s count becomes: the total, less four for every long piece after the last, where a fork contributes two pieces, a cross three and a star of d arms d − 1. That is a rule a player can carry to the board, and it costs one more question per component than the rule for chains: how many arms?

The impartial skeleton does not see any of this. The fork 3/3/3 is worth nought in Nimstring, exactly as a chain or a loop is, so the parity count that decides who gets control treats it as one more long component. The scoring arithmetic is where the fork differs, and the difference is precisely one extra piece: control is decided by components, its price is paid in pieces.

The convention, named

Strings and coins, scoring: cutting the last string on a coin pockets it for the cutter, who must then cut again. Each component is solved as a scoring game with both sides playing optimally from the moment it is opened, followed by a long chain whose opener loses it whole; the fee is half the difference between the controller’s best net and what the controller would net by taking everything, against the opener’s worst opening for the controller. A fork’s arms are rows of boxes joined to a centre box, each ending on the ground; an arm of nought is a bare string from the centre to the ground. Forks, crosses and stars here have every arm ending on the ground, which is the form they take on a board when a centre box sits away from the border.

What the sweep does not show

Branching components that are not stars. A component with two coins of three strings, or an arm that rejoins another to make a loop with a tail, falls into pieces in more than one way, and the opener’s choice of cut decides how many. The rule that the fee is two per piece suggests the opener picks the cut that leaves the most pieces, but nothing here measures it.

Arms that end on each other rather than the ground. A fork whose arms end in a loop, or at another fork, is the shape real boards produce, and its pieces are not chains. Each such piece would carry its own fee, and the sum is plausible and not checked.

And a company of more than one long chain. The long chain here is one long chain, so the opener’s alternative to opening the component is opening the chain, and control is decided once. On a board with several long components the fork’s fee is still four by the argument above, but whether the opener ever prefers to open a fork before a chain — paying for one extra piece in exchange for something else — is a question about the order of play that a single long chain cannot pose.

Still open: the cut that leaves the most pieces

The star rule rests on one fact: every opening of a star leaves the same number of pieces. That stops being true as soon as a component has more than one branching coin. A component shaped like an H — two centre boxes joined by a bar, each with two arms — can be opened at the bar, leaving two forks, or at the end of an arm, leaving a chain and a component with one branching coin left. Those openings fall into different numbers of pieces in the end, and if the fee is two per piece the opener’s choice is worth two boxes of margin per piece it adds.

The measurement is this same solver on the H and its relatives, with each opening’s fee reported rather than only the worst. If the opener always picks the cut that leaves the most pieces, the fee of any tree of long arms is two for every piece of its finest decomposition, and the endgame arithmetic extends to every tree-shaped component by counting leaves. If some opening of the H costs a fee that no count of pieces explains, the tree has an endgame of its own, and the game in every exercise book has another layer under the one its children are taught. The rule that a move must be answered is what makes the fee exist at all, and the parts are worth nothing and the sum is not is where the components were first set beside each other in the impartial game the fork, it turns out, does not disturb.

Part 9 of 11

One argument about Dots and Boxes. The parts either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

What this makes readable

Essays that declare this one a prerequisite.

The objects named here

The third axis, after the field and the series: the games, values and theorems themselves, and every essay that touches each one.

ComponentCountingDecompositionDots and BoxesEndgameExhaustive searchLoonyScoring gameTempo