Five in a row: what follows from the measurements
Five in a row on a 15 × 15 board cannot be solved exactly. What holds about the first player, threats and forks and the AI levels, from games of AI against AI.
Game: Lines
Five in a row is a preset of the game Lines: a 15 × 15 board, a line of five or longer wins. It has 225 cells and the game's solver stops at 64, so with perfect play it is not known who wins. All the numbers come from games of AI opponents.[1]
What holds
- The solved small boards with a line of 5 (up to 6 × 4 and 5 × 5) are draws; 7 × 4, 6 × 5 and larger were not solved.[2]
- The share of games won by the first player with AI opponents of equal level depends on how the game starts: Normal against Normal: the first player wins 100% from an empty board (22 different games of 40), 48% with two random stones; Strong against Strong 65% (and 12.5% draws) and 85%.[3]
- Up to 7 × 7 every game is a draw, from 8 × 8 wins appear, from 12 × 12 the second player wins about as often as the first.[4]
- Every level starts in the middle; the Normal and the Strong AI always answer diagonally next to it. A stone on the edge is the worst first move: the Strong AI won 4 of 14 games with it, otherwise 68 to 100%.[5]
Threats and the fork
- A four: four stones in a window of five cells and the fifth free, the winning cell; the opponent must block it at once. The game's hint shows only fours.
- An open three: a stone on one cell makes two winning cells at once; the opponent must answer at once.
- A fork is a move after which the player wins within two further moves of their own, whatever the opponent answers: two fours, a four and a three, two threes.
- The Normal and the Strong AI play their own fork almost always (483 of 484, 623 of 623), the Weak AI in 41% (82 of 200).
- The games of the Normal and the Strong AI are decided by a fork that the opponent could no longer stop a move earlier (in 2 of 473 decided games it could).
Against the AI
All the numbers come from games of AI opponents; people were not measured.[6]
| AI | Blocks a four | Answers a fork of the opponent | The player of rules wins |
|---|---|---|---|
| Weak | 56% | 12% | 100% |
| Normal | 100% | 99.9% | 35% |
| Strong | 100% | 100% | 16.7% |
- The player of rules (blocks a four, answers a fork, plays its own) stands in for a person.
- A principle that was not measured: against the Weak AI it is enough to build lines and take a win (90%); against the Normal and the Strong AI it is not (1.7% and 0%).
Notes
- See (forthcoming article no. 66). ↩︎
lines.js --solved --board LIST --nodes 300000000: 5 × 3, 5 × 4, 6 × 4 a draw; 7 × 4, 8 × 4, 6 × 5, 6 × 6 not solved; 5 × 5 with--nodes 4000000000a draw; game 0.126.2. ↩︎lines.js --matrix --games 40 --variant gomokuand 160 games per pair with two random opening stones; game 0.126.2. ↩︎- 100 games of the Normal AI against the Normal AI for each board size, one random stone of each player; game 0.126.2. ↩︎
- Fixed openings: 736 games of the Normal and 177 of the Strong AI against themselves (the first stone in a fixed class of cells, the answer within a distance of 2); game 0.126.2. ↩︎
- 960 games of the AI with two random stones and a threat detector written for the measurement; 60 games for each set of rules and level of the AI (30 as the first, 30 as the second player); game 0.126.2. ↩︎