Out in the world

Height sets the price

How many stones a turn does Breaker need to stop three in a row? On every board three rows high, from three to eight columns wide, the answer is two. On every board four or five rows high and wider than it is tall, it is three. Width changes the price nowhere, and the biased Erdős–Selfridge sum, which counts lines, treats width as the main danger. For four in a row the step comes one row later.

Assumes: A win priced in stones · Three ways to know a draw

A win priced in stones turned a yes-or-no game into a number. In the biased Maker–Breaker game, Maker places one stone a turn and Breaker places b. The stopping price of a board is the smallest b at which Maker can no longer force a line. On sixteen small boards it found the price was nearly always 2 for three in a row. The one exception was 5 × 4, at 3. It ended with a guess it could not test: that the price is set by the board’s height, with width only filling in, and that the boards needed to test this, 6 × 4, 5 × 5 and 7 × 3, were beyond its search.

They are not beyond a better search, and neither are boards well past them. Twelve boards for three in a row and nine for four in a row are solved exactly below, at every rate up to the price. The result is cleaner than the guess. The price is a function of height alone, once the board is wider than it is tall. Three rows cost two stones a turn however long the rows are. Four or five rows cost three. Not one board in range has a price that depends on its width.

Height sets the price. The stopping price for three in a row on boards of height three to five. Height three, widths three to eight: 2, 2, 2, 2, 2, 2. Height four, widths four to seven: 2, 3, 3, 3. Height five, widths five and six: 3, 3.
Fig. 1 The stopping price for three in a row, by height and width. Every board three rows high is held by two stones a turn, at every width from three to eight. Every board four or five rows high that is wider than it is tall needs three. The single exception is the square 4 × 4, at two.

A search that can reach the boards

The search behind the earlier table stored every position it met under one key and tried every empty cell for every stone. On a 5 × 5 board with Breaker placing three, that is too much to store. Three changes make the larger boards cheap. Each one is sound, meaning it cannot change an answer.

Positions are stored up to the board’s symmetries. An oblong board has four, a square one eight, and a position and its mirror image have the same value. So only one of each family needs to be stored. That alone divides the memory by close to four.

Only live cells are played. A cell is live if it lies on some line that Breaker has not yet touched. A stone on a dead cell does nothing for Maker, who cannot complete a line through it. It does nothing for Breaker either, since there is no line through it left to spoil. Leaving such cells out removes moves that cannot matter.

When Maker threatens, Breaker answers the threat. A threat is a live line with one cell missing. All of Breaker’s stones in a turn land before Maker moves again, so the order of those stones within a turn makes no difference. A Breaker who must cover the threatened cells may as well cover them first. And if there are more threatened cells than stones left in the turn, Maker has already won and nothing more need be searched. This rule cuts the search hardest, because almost every turn near the end of a game has a threat in it.

The new search agrees with the old one on all sixteen boards of the earlier table at rates of one, two and three stones, forty-eight cases in all. The board that needed most storage in the earlier work, 5 × 5 at three stones a turn, now takes 12,231 stored positions. The limit now is the mask that holds a board, thirty-one cells, and not the time or memory.

Along a row, nothing moves

The hero table has two directions, and they behave quite differently.

Read a row first. Three rows high, the price is 2 at width three, which is noughts and crosses, and it is 2 at width eight. The number of lines rises from 8 to 38 over that range. In the earlier work’s arithmetic, more lines means more for Breaker to watch, and the biased sum below treats each added line as more danger. At width five the board already has more than twice as many lines as noughts and crosses, and two Breaker stones a turn still hold it. They hold the next three widths too.

One more width was run outside the table. On 9 × 3, a separate run of about forty seconds proved that two stones hold, and storing the positions it needed took 36.7 million entries. The price is still 2. That makes seven widths with the same answer.

The price stays put while the proof grows. Boards of height three from three to eight wide: lines 8, 14, 20, 26, 32, 38; positions needed to prove that two Breaker stones a turn hold three in a row, 41, 256, 823, 6399, 70026, 1228444; the price is 2 throughout.
Fig. 2 Boards three rows high, with the positions the search stores to settle each rate. Finding Maker’s win against one stone a turn is fast. Proving that two stones hold costs about ten times more for each column added. The answer is 2 throughout.

The second figure shows why this result means more than it might appear to. A width that changed the price would have to show up against a proof that gets harder at every step. The proof that two stones hold has to visit every defence Breaker might need. Its cost grows by roughly ten times with each added column: 41 positions at width three, 256 at four, 823 at five, then 6,399, 70,026 and 1,228,444. Maker’s win against a single stone a turn is found almost at once on every board. Maker never needs more than 165 stored positions to show it in the table, so that half of the question is easy. The hard half is a proof that a draw holds. A win needs one line of play shown, while a hold needs every line of Maker’s refuted; a proof inside a budget prices proofs of that kind in positions expanded, on Domineering. The fact that its answer stays the same while its cost multiplies by thirty thousand is the main evidence that width is not what decides it.

That is a different kind of statement from the earlier one. Over sixteen boards, height three costs two was a pattern seen on four widths, which could have been a coincidence of small boards. Over seven widths, with the proof growing exponentially, it becomes a regularity that would be odd to break at width ten.

Up a column, the price steps once

Now read a column. Going from three rows to four, the price moves from 2 to 3 on every board wide enough to have the question: 5 × 4, 6 × 4 and 7 × 4. Going from four rows to five, it does not move at all. 5 × 5 and 6 × 5 are at 3, the same as height four.

So height does not raise the price steadily. It raises it once. Three rows is a two-stone board; four rows is a three-stone board, and so is five. Whether six rows makes a four-stone board is the obvious next question. A 6 × 6 board has thirty-six cells, more than the mask holds, so it cannot be answered here.

The square board is the exception, and it is an informative one. 4 × 4 has four rows but costs only two. It differs from 5 × 4 by one column, and in the row direction that column matters a great deal. With four columns, a cell is on at most two horizontal lines of three; with five, the middle cell is on three. On a square, too, the horizontal and vertical directions are equally short. So the sentence height sets the price needs a condition: the height that counts is the shorter side, and width matters only until it passes the height. Past that point, extra width adds lines all along the board but none through any single cell.

That last observation is easy to check, and it is the clearest reason width does nothing. Count the lines of three through each cell, and take the busiest cell on each board. On boards three high it is 4 at width three, 5 at width four, and 6 from width five on, staying at 6 through width eight. Width eight has twelve cells at that count and width five three, but no cell carries more. Four rows high, the busiest cell has 7 lines on the square and 9 from width five on. Five rows high it has 12. A Maker’s threats all come from stones in the middle of the board, so what matters is the lines through a few central cells. Extra width adds more cells of the same kind and no better ones.

The count does not explain everything, and it should not be read as if it did. It puts the boards in the right order: 6 lines at a price of 2, 9 and 12 lines at a price of 3. But its steps do not match the price’s steps. Going from 9 to 12 lines buys Maker nothing, and the price does not follow the count past that point. What the count explains is why width is irrelevant. What height does is only partly explained by it.

The win at the margin needs the middle

There is a way to see where Maker’s advantage on these boards actually is. At a rate one stone short of the price, ask which opening cells still let Maker win. Every board in the table is a Maker’s win at that rate from its best opening, by definition. The question is how many openings that is true of.

At two stones a turn the win needs the middle. Opening cells from which Maker still forces three in a row against a Breaker placing two stones a turn: none on 4 × 4, 2 on 5 × 4, 4 on 6 × 4 and 5 on 5 × 5, every one of them central.
Fig. 3 Against a Breaker placing two stones a turn, the opening cells from which Maker still forces three in a row. On the square there are none. On 5 × 4 only the two centre cells win, on 6 × 4 the centre four, and on 5 × 5 a cross of five around the centre.

Very few. On 5 × 4, two of twenty openings beat a two-stone Breaker, the two centre cells. On 6 × 4 it is the four centre cells, out of twenty-four. On 5 × 5 it is the centre and the four cells next to it orthogonally, a cross of five out of twenty-five. On the square, none of sixteen openings wins, which is the square’s price of two seen from Maker’s side. Every winning opening is the centre of its board or a cell touching it.

The contrast with the fair game is the point. In noughts and crosses, five of nine openings win the blocking game against a Breaker placing one. In the same game at two stones a turn, none do. On these boards, one stone below the price, a handful of central cells still win and the rest of the board is as good as a draw. So at the margin a Maker’s win is a property of a few cells, not of the board. This also explains why width is irrelevant. Width adds cells like the edge cells of 6 × 4, and none of those openings wins.

It also says what Maker’s win at two stones a turn is made of. Breaker places two, so a single double threat is not enough; Maker needs three lines one cell short at the same moment. All three of those lines have to run through cells Maker already holds. The cross on 5 × 5 is the shape of that requirement: a central stone has lines going out in four directions, and the cells next to it in a cross are the only other cells with the same room.

For four in a row the step comes a row later

If height sets the price for three in a row, the natural test is a longer line. Does the same thing happen for four in a row, and where is the step?

For four in a row the step comes a row later. Stopping prices for four in a row: 4 × 3 1, 5 × 3 1, 6 × 3 1, 7 × 3 1, 4 × 4 1, 5 × 4 1, 6 × 4 1, 5 × 5 2, 6 × 5 2. Every board of height three or four is held at one stone a turn, and both boards of height five need two.
Fig. 4 The stopping price for four in a row. Every board three or four rows high in range is held by one stone a turn, from 4 × 3 to 7 × 3 and from 4 × 4 to 6 × 4. Both boards five rows high, 5 × 5 and 6 × 5, need two.

The pattern repeats, one row later. Four in a row on a board three high has no vertical or diagonal lines at all. Every line is part of a row, and one Breaker stone a turn holds it at every width tried, up to seven. Four rows high gives verticals and diagonals, and it still costs only one stone, on 4 × 4, 5 × 4 and 6 × 4. At five rows the price is two, on both boards that fit in the mask. Width again changes nothing in any row of the table.

For three in a row, the price went up by one between heights three and four. For four in a row it goes up by one between heights four and five. In both, the step comes when the height passes the length of the line. It is a neat statement, and it fits nine boards plus the twelve before them. The data do not show why the step comes there. The likeliest reason is the one from the previous section. A line one cell longer needs one more row of room before a central cell has lines in every direction to threaten along, and threatening in every direction is what costs Breaker an extra stone. That is an interpretation, though, and nothing on these boards proves it.

The cost of the four-in-a-row proofs is worth recording, because it is not the same as for three. Proving that one stone holds four in a row on 6 × 4 takes 8.8 million stored positions. Proving that Maker wins 6 × 5 at one stone takes 13.1 million. Both cost far more than any three-in-a-row board at its price. A longer line means longer games, and the threat rule only starts cutting near the end.

The sum reads width as danger

The table has a theorem to be compared with. Beck’s biased form of the Erdős–Selfridge potential says that, with Maker placing one stone and Breaker b, Breaker wins if the sum over lines of (1 + b) to the power −k is below 1/(1 + b). The smallest b that satisfies it is the sum’s price. It is a guarantee: Breaker can always stop Maker at that rate. So it can be too high but never too low.

The sum reads width as danger. For three in a row on boards of height three to five, the exact stopping price against the biased sum's certified rate: 3 × 3 2 against 2, 4 × 3 2 against 3, 5 × 3 2 against 4, 6 × 3 2 against 5, 7 × 3 2 against 5, 8 × 3 2 against 6, 4 × 4 2 against 4, 5 × 4 3 against 5, 6 × 4 3 against 6, 7 × 4 3 against 7, 5 × 5 3 against 6, 6 × 5 3 against 7.
Fig. 5 For every board in the hero table, the exact price, filled, against the rate at which the biased sum first certifies the stop, shaded. The sum is exact only on noughts and crosses. On boards three high it climbs from 2 to 6 while the true price stays at 2, and on the larger boards it asks for 7 against a true 3.

The earlier essay found the sum exact on noughts and crosses and two to three times too high elsewhere. Over the larger table the reason is clear. The sum depends on one quantity, the number of lines, and the number of lines rises fastest in exactly the direction where the price does not move. Three rows high, the sum asks for 2, 3, 4, 5, 5 and 6 stones as the board widens, against a true 2 every time. Four rows high it asks for 4, 5, 6 and 7, against 2, 3, 3 and 3. On 6 × 5, with 62 lines, it asks for 7 where 3 is enough.

So the sum is not just loose by some factor, as it was in Hex, where a potential that names every move found its guarantee reaching only boards two rows deep while the play it recommends wins far beyond them. It gets the shape of the table wrong. Its price rises fastest along a row, where the true price is flat. Up a column, where the true price does step, the sum rises no faster than along a row. The reason is the one three ways to know a draw gave for the fair game. The sum weighs each line as if it were alone, so a board with many lines that share cells looks as dangerous as one with many separate lines. On a long board of height three, most of the new lines are rows that overlap their neighbours in two cells out of three. One Breaker stone in the middle of a row ends three of them at once, and the sum counts that stone as ending one.

This matters beyond these boards. The sum is the only certificate available on a board too large to search, and it is exactly on large boards that the gap is widest. A solver relying on it would put its effort in the wrong direction: it would treat a long board as hard and a tall one as no harder.

At the margin every win takes four turns

The last reading measures speed instead of price: at the last rate Maker still wins, how many turns does it need?

At the margin every win takes four turns. Maker's fastest forced three in a row at one Breaker stone below the stopping price: 3 × 3 at 1, 4 turns; 4 × 3 at 1, 4 turns; 5 × 3 at 1, 4 turns; 6 × 3 at 1, 4 turns; 7 × 3 at 1, 4 turns; 8 × 3 at 1, 4 turns; 4 × 4 at 1, 3 turns; 5 × 4 at 2, 4 turns; 6 × 4 at 2, 4 turns; 7 × 4 at 2, 4 turns; 5 × 5 at 2, 4 turns; 6 × 5 at 2, 4 turns.
Fig. 6 One stone a turn below each board’s price, the fewest Maker turns in which three in a row can be forced against best resistance. Every board in the table takes four turns, except the square, which falls at a rate of one in three.

All eleven boards that are not square take exactly four turns, at their own margin. Boards three high take four turns against one stone a turn. Boards four and five high take four turns against two. The count is the same as the one the earlier essay found for noughts and crosses: three stones to build the threats and a fourth to complete one. At the margin, a win has the same length whatever the rate. The natural reading is that Maker spends three turns building one more threat than Breaker has stones, then completes one; the count of turns agrees with that reading, though it does not prove it.

The exception is again the square. At a rate of one, a 4 × 4 board falls in three turns, faster than any other board in the table, because one stone a turn is far below what is needed to hold it. Its margin is at one, so it is fast; at two it is held completely. The square is a board whose height alone would cost three stones but whose width lowers that to two. In the speed table, too, it sits at the edge of both rates.

The convention named

Maker places one stone a turn and moves first. Breaker places b stones a turn, all of them before Maker moves again. A board is m columns by n rows; lines are horizontal, vertical and both diagonals, of exactly k cells. The stopping price is the smallest b at which Maker cannot force a complete line against best play. Every price is exact, from a search over all play that stores positions up to the board’s symmetries, plays only live cells, and makes Breaker cover a threatened cell whenever one exists. All three restrictions leave the answer unchanged, and the search agrees with the plain one on the forty-eight cases both can solve. Positions counted are those the search stores. The biased sum is Beck’s form of the Erdős–Selfridge criterion with Maker’s rate one.

What the table does not show

Anything above thirty-one cells. Every board drawn fits in a 31-bit mask. 6 × 6, 7 × 5 and 8 × 4 do not, and those are exactly the boards that would show whether a sixth row raises the price again or whether three stones are enough for every height above three. The answer may be that height goes on raising the price in steps; it may be that it stops at three. Two values in a column cannot settle that.

Why the step comes where it does. The line counts through the busiest cell explain why width does nothing. They do not explain why four rows cost a stone more than three while five cost the same as four. The middle figure shows where the win lives, and gives no proof that it has to live there.

Fractional rates. A rate of three stones every two turns is well defined and would put a board like 4 × 4 somewhere between two and three. A table at integer rates can only show that height decides which integer a board’s price is.

Still open: whether a sixth row buys a fourth stone

The price for three in a row has stepped once, between three rows and four, and then held at five. The question the table now poses is whether that was the only step. If six rows cost four stones, height sets the price in a sequence of steps, perhaps one for each row added, and the 5 × 5 result was a pause. If six rows still cost three, the price for three in a row has a ceiling, reached at four rows. The infinite board would then be stopped by three stones a turn, and every finite board by at most three. Both outcomes would be clean statements about the family. Telling them apart needs one board, 6 × 6, and a search with a wider mask, which a pair of thirty-two-bit words provides at about twice the memory.

Two other essays bear directly on this one. A check in front of a search is the same kind of saving as the threat rule here, a cheap test that ends a branch before it is searched, measured on another game. And a position reached eleven ways is one position explains why storing positions up to symmetry, rather than searching the tree of play, is what makes 36.7 million stored positions on 9 × 3 feasible at all.

Part 4 of 4

One argument about Maker–Breaker. The parts either side of it:

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.

BoundCertificateCounterexampleExhaustive searchMaker–BreakerSymmetryTempoTransposition