---
title: "Searching for solutions in games and artificial intelligence (1994)"
description: "Allis explains how proof-number search and dependency-based search establish winning strategies in qubic and two variants of go-moku."
canonical: "https://research.elamur.ai/free/en/papers/allis-1994-searching-solutions-games-artificial-intelligence/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/allis-1994-searching-solutions-games-artificial-intelligence/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [1994](https://md.research.elamur.ai/free/en/papers/1994/) / Searching for solutions in games and artificial intelligence

# Searching for solutions in games and artificial intelligence

Paper · 1994 · L.V. Allis

**Authors:** L.V. Allis · **Year:** 1994 · **Licence:** [CC BY (OpenAlex best open-access location)](https://creativecommons.org/licenses/by/4.0/)

[licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://cris.maastrichtuniversity.nl/ws/files/588458/guid-36b5cf0a-cf06-4602-afdb-1af04d65c23b-ASSET1.0.pdf)
- [DOI 10.26481/dis.19940923la](https://doi.org/10.26481/dis.19940923la)

## Summary

A program can win a board game by taking advantage of an opponent’s mistake. To solve the game, it must establish what happens when the opponent can choose any legal reply, including the strongest one. Victor Allis’s thesis treats that difference as a starting point for research in [artificial intelligence](https://md.research.elamur.ai/free/en/concepts/artificial-intelligence/). It develops ways to find a strategy that guarantees the best achievable result from the opening and asks what the successes and difficulties of game programs reveal about search and learning.

The thesis introduces proof-number search and dependency-based search. Proof-number search looks at the unfinished parts of a tree and asks how many of them would have to turn out favorably to settle the position. It chooses a branch that can contribute to a small proof or a small disproof, depending on what the search discovers there. Dependency-based search changes what the program explores in the first place. It follows actions that make later actions possible and joins compatible lines of work when a later action needs their combined effects. Under stated conditions, this smaller search space still represents every solution.

In awari, the thesis compares proof-number search with alpha–beta search on 337 tournament positions selected for the final test. Both proof-number variants settled every position in that set. The variant guided by the number of stones still needed averaged 56,136 nodes per position, compared with 3,815,548 for the alpha–beta variant with transposition handling. The difference was most pronounced on difficult positions. Lithidion, the awari program, also won computer tournaments and showed evidence of strength against human players. The thesis leaves the value of awari’s opening unresolved. In a separate test on a string-rewriting puzzle, dependency-based search completed every instance and explored considerably smaller spaces than ordinary depth-first search.

The two techniques work together in qubic and go-moku. Dependency-based search finds forcing sequences that can settle individual positions. Proof-number search connects those tactical wins into a strategy that covers the opponent’s replies. The qubic result independently confirms a previously established win for the opening player. Victoria establishes a first-player win in both free-style and standard go-moku on the 15 x 15 board without opening restrictions. The thesis also surveys games where strong play still posed a different problem. In bridge and go, Allis identifies the difficulty of acquiring experience and recognizing when it applies as a possible explanation for the gap between programs and human experts.

## Deep dive: Searching for solutions in games and artificial intelligence

Allis explains how proof-number search and dependency-based search establish winning strategies in qubic and two variants of go-moku. · about 40 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What it means to solve a game

A strong move can be recognized in several ways. It might have worked in tournament play, look good under a program’s evaluation, or lead to a continuation that guarantees the desired result. The thesis reserves the term *solution* for a claim of the last kind and asks how much of the game the guarantee covers. This matters because the work needed to determine the result of an opening position can differ substantially from the work needed to give a player a usable strategy.

An ultra-weak solution determines the game-theoretic value of each starting position. That value is the outcome under optimal play by both sides. Hex illustrates how this can happen without knowing the moves of a winning strategy. The argument given in the thesis uses the impossibility of a draw and the fact that an extra move cannot disadvantage the opening player. It establishes who wins with optimal play while leaving the winning choices to be discovered.

A weak solution supplies strategies that guarantee each side at least its game-theoretic result from the starting position, within reasonable computational resources. In a drawn game, a player using such a strategy can secure the draw. A mistake by the opponent might allow a win, but finding that win is a separate obligation. A strong solution covers every legal position and therefore includes the improved outcomes that become available after mistakes. Allis uses the weak standard when describing a game as solved. Requiring a strategy that can be used within a practical resource limit gives that standard substance. The observation that a full search could in principle identify optimal play would otherwise settle the terminology while leaving the computational problem untouched.

These definitions also explain why the thesis measures solving and tournament strength separately. It recalls how Samuel’s checkers program won a game against a master and how some observers took that achievement as evidence that checkers had been solved. A match provides evidence about play against an opponent under particular conditions. A solution establishes the result against all replies relevant to the claim. Conversely, for a game with a forced first-player win, a weak solution guarantees the win from the favorable side and makes little demand on how skilfully the program handles the losing side.

#### Why games make search problems visible

Allis chooses games with recognizable standards of human skill and rules that make positions and continuations explicit. A board game offers a small world in which a program can work out what actions are legal without having to understand ordinary conversation or draw on everyday knowledge. Even within such a world, skilled players frequently see patterns and long-term consequences that a program would have to discover by testing many moves. That gap gives the researcher a way to ask which part of the difficulty lies in the search and which part lies in the knowledge used to guide it.

The games come from the Computer Olympiads. The selection favors familiar, nontrivial contests in which skill affects the outcome. The thesis treats the competitors as two opposing sides in a zero-sum contest, even when a side consists of a partnership. It includes games with hidden information or chance in its broad survey. The main search studies concern positions that can be examined with the relevant information available. Awari attracted interest because its space of positions appeared relatively small. In qubic and go-moku, experienced players’ assessments suggested a substantial opening advantage. Nine men’s morris was another candidate, and Ralph Gasser’s concurrent investigation led Allis to direct his own effort elsewhere.

The distinction between the number of positions and the size of a search tree is central to that choice. State-space complexity counts legal positions reachable from the start. Different move sequences can lead to the same position, so counting sequences in a tree can make the problem much larger. Allis defines game-tree complexity using a full-width search deep enough to settle the opening value. Full width means that the search includes all legal continuations at each level it reaches. The thesis also uses average game length and branching, the number of legal choices at a position, to estimate the scale of such a tree when the defining search is impractical.

Other properties help explain why games of substantial size call for different techniques. A game converges in Allis’s sense when moves generally take play into classes of positions with fewer members. Captures in checkers, for example, eventually lead into smaller classes for which exact endgame databases can be built. Qubic and go-moku accumulate pieces. They have a different advantage for a solver. Completing the relevant line ends the game immediately, so a sequence of well-timed threats can settle a position with much of the board still empty. The thesis calls this property sudden death. Such a sequence can put an exact value on a position that would otherwise be far from a full-board ending.

#### The search techniques available at the time

Alpha–beta search was the standard game-tree method in the thesis’s account. It works through the tree depth first and uses what earlier branches have established to stop examining branches that cannot affect the decision. When good moves are considered first, those cutoffs can come early. Iterative deepening helps with ordering by carrying information from shallower searches into deeper ones. The thesis describes alpha–beta as particularly well suited to uniform trees with strong ordering, and it points to the modest working memory needed to follow a path down a tree.

Best-first methods can choose where to work next from among the branches they have already uncovered. That freedom has a cost because the search must retain information about the tree. The thesis discusses SSS*, which selects work according to the best outcome still attainable, and B*, which uses estimates of upper and lower bounds to establish which move to choose. Both show ways to direct computation toward unresolved alternatives. They also make different demands on an evaluation function and on memory.

Proof-number search draws most directly on conspiracy-number search. In that earlier method, the program asks how many leaf evaluations would have to change to alter the current result at the root. A large enough number is taken as evidence that the current result is stable. Allis keeps the idea that the arrangement of evidence in the tree should influence where the program looks next. He changes the task to establishing whether a proposition is true or false. The program can therefore make progress through the shape of the partially explored tree even when unresolved leaves have no reliable estimated scores.

Dependency-based search begins with a different observation about [knowledge representation and reasoning](https://md.research.elamur.ai/free/en/concepts/knowledge-representation/). When a whole state is treated as an indivisible object, the search can recognize an exact repeat, but the representation gives it little help in discovering which actions interact. The thesis uses STRIPS as an example of a representation with more structure. An action names the facts it needs, the facts it removes, and the facts it adds. This makes it possible to ask whether an action needs something produced earlier or whether two actions can be carried out independently. Recognizing such relationships can save work before the search creates all the states that a conventional traversal would have to compare.

### The method, step by step

#### Turning a game position into a proposition

Proof-number search begins with a question such as whether the opening player can force a win. Each node represents a position and the question applied to it. At a position where the player trying to force that win moves, one successful choice suffices. This is an OR node. When the opponent moves, the winning strategy must survive each reply. This is an AND node. A win for the designated player makes the proposition true, while an opponent win or a draw makes it false. An unresolved position is recorded as unknown. The awari experiment uses the same division for the side to move at the test position.

At any stage, the search has created only part of the tree. An evaluated leaf may already be settled by a game-ending condition, an exact database result, or a tactical procedure trusted to establish a win. Other leaves form the frontier, where additional work is possible. A proof set is a collection of frontier nodes whose eventual proof would make the root true. A disproof set is a collection whose eventual disproof would make it false. The algorithm keeps the size of the smallest such set for each subtree. These sizes describe the opportunities visible in the current tree. The eventual work depends on what expansion reveals.

#### Counting the work still open

The simplest initialization gives every unresolved frontier node the same pair of values.

```
(p(v), d(v)) = (1, 1)
```

Here `v` is the frontier node, `p(v)` is its proof number, and `d(v)` is its disproof number. Each `1` counts the node itself as the remaining requirement for the corresponding outcome in the current partial tree. The parentheses display an ordered pair, with proof first and disproof second.

```
(p(v), d(v)) = (0, ∞)  if v is true
```

The symbols `v`, `p(v)`, and `d(v)` retain the same meanings. A `0` means that the proof requires no further frontier nodes. The infinity symbol `∞` marks the impossibility of disproving a node whose value has already been established as true.

```
(p(v), d(v)) = (∞, 0)  if v is false
```

Here `v` has already been disproved. Its proof number `p(v)` is `∞` because a proof is unavailable, and its disproof number `d(v)` is `0` because that work has been completed.

The internal-node rules follow from who has the choice. Proving an AND node requires a proof for each child. Disproving it requires a disproof for any child.

```
(p(v), d(v)) = (Σ_{c ∈ C(v)} p(c), min_{c ∈ C(v)} d(c))  if v is AND
```

Here `C(v)` is the set of children of `v`, and `c ∈ C(v)` means that `c` ranges over those children. The symbol `Σ` sums the child proof numbers `p(c)`. The operation `min` selects the smallest child disproof number `d(c)`. In a tree, different child subtrees have separate leaves, so the sum counts separate obligations.

```
(p(v), d(v)) = (min_{c ∈ C(v)} p(c), Σ_{c ∈ C(v)} d(c))  if v is OR
```

The symbols have the same meanings, but the operations change places. At an OR node, the smallest `p(c)` suffices for a proof. A disproof must settle all the alternatives, so `Σ` adds their `d(c)` values.

The effect of those rules is easiest to see when one reply is forced. An attacker trying to prove a win needs to establish the result after that reply. With several viable replies, the attack carries several proof obligations. A search based on depth alone can arrive at both situations at the same depth. Proof numbers assign them different costs because of what must be established in each. Already solved children can make the difference sharper. An AND branch with many children can be inexpensive to prove if nearly all of them have already been proved.

#### Choosing a leaf that can help either way

The program descends from the root. At an OR node it follows a child with the smallest proof number. At an AND node it follows a child with the smallest disproof number. It uses the leftmost eligible child to break ties in the basic algorithm. The destination is what Allis calls a *most-proving node*. Turning that leaf true would reduce the root’s proof number by one. Turning it false would reduce the root’s disproof number by one.

The justification is structural. In an unresolved tree, any smallest proof set and any smallest disproof set have at least one frontier node in common. At an AND node, a proof needs contributions from all child subtrees and the smallest disproof is confined to a child. Within that child, the two sets intersect by the same argument applied lower in the tree. At an OR node, a smallest proof is confined to a child and a disproof needs contributions from all children. At the frontier, the same leaf forms the proof set and disproof set. The induction explains why the selection rule can advance either possible result with one choice. It gives no advance information about what value that leaf will actually take.

How proof-number search develops an AND/OR tree The steps in order.

The game implementations use immediate evaluation. After expansion, the program evaluates the new children before choosing another frontier node. This can reveal several settled positions at once. Allis also describes delayed evaluation, which evaluates a node when the search selects it. Delay can spare expensive evaluations when a node has many children and few of them are likely to matter. Immediate evaluation gives the program more information for an equally large stored tree. Which cost matters more depends on the branching and the expense of evaluation.

A practical implementation can save work after expansion. If an ancestor’s proof and disproof numbers are unchanged, its own parent receives the same input as before. The program can stop propagating changes and resume selection from that ancestor because the path from the root still leads through it. In an ordinary tree, a settled subtree can also be discarded once its contribution is accounted for. A separate proposal, PN² search, evaluates a node by giving it its own bounded proof-number search. The outer search keeps the resulting value or numbers and can release the inner tree. It trades additional node work for a smaller amount of simultaneously stored information.

Allis also varies what an unresolved leaf’s numbers measure. If generating a position’s children is cheap enough to anticipate how many there will be, an OR leaf can be initialized with a proof cost of `1` and a disproof cost equal to the number of children. For an AND leaf the assignments are reversed. The idea is to budget for evaluations of children rather than to count all expansions as equally expensive. In awari, the stone-based variant uses the number of additional captures that each side would need for the relevant outcome. In the thesis’s example, proving that south can at least draw starts with a proof number of 13 stones, while establishing a win for north starts with a disproof number of 17 stones. These values give the search a way to distinguish unresolved positions with different prospects.

For go-moku, the numbers assigned to unknown leaves grow with their distance from the search root.

```
p(v) = d(v) = 1 + ⌊d ÷ 2⌋
```

In this expression, `v` is an unresolved frontier node and `p(v)` and `d(v)` are its initial proof and disproof numbers. The standalone `d` denotes depth in ply, where a ply is one player’s move. The floor brackets `⌊ ⌋` take the integer part of the quotient, and `1` is the base cost. The division by `2` converts the depth to completed pairs of moves. This makes a deep forcing continuation gradually compete with shallower alternatives while leaving it available to the search.

Another change is needed when different move orders reach the same position. These repetitions across branches are called transpositions. Qubic and go-moku can share positions in a directed acyclic graph because each move adds a stone and play cannot return to an earlier board along the same path. A shared child can contribute to several parents. Adding their numbers as if the subtrees were separate can count the same requirement more than once. The practical implementation uses those approximate counts to guide search and propagates value changes through the affected parents. Game rules that make the value depend on repeated visits along a single path introduce a further difficulty. For those games, a board diagram taken in isolation may leave out the history needed to evaluate the position.

#### Describing what each action changes

Dependency-based search, or db-search, addresses problems that can be expressed as a sequence of actions by a single agent. The agent may be reducing a string or, after an appropriate transformation, constructing threats on a board. In either case, the approach represents a state by a set of attributes. An operator requires certain attributes and changes others. The state space can be described as follows.

```
Uₛ = 𝒫(U)
```

Here `U` is the universe of attributes, `𝒫` denotes the power set, and `Uₛ` is the set of states admitted by the representation. A particular problem begins from a designated initial state and reaches only those states produced by its applicable operators.

```
I(S) = (S ∖ D) ∪ A, provided P ⊆ S
```

Here `I` is the operator and `S` is the current state. `P` is its precondition set, `D` its delete set, and `A` its add set. The condition `P ⊆ S` says that every precondition must be present. The operator removes `D` using set difference `∖` and inserts `A` using set union `∪`. In the thesis’s framework, deletion is limited to attributes that were required by the operator.

The double-letter puzzle makes this representation concrete. The starting word, called the axiom, consists of letters from a circular alphabet running from `a` to `e`. An adjacent identical pair can be replaced by either the preceding or the following letter in that alphabet. The objective is to reduce the word to a single letter. Each letter in a partially reduced word carries the interval of the starting word from which it was derived. Two occurrences of the same letter then have separate identities when they summarize different intervals. A rewrite takes two adjacent intervals bearing the same letter and creates a new attribute covering their joint interval.

Consider `aacc`. The two pairs can each become `b`. Either pair can be rewritten first, and when both rewrites have happened the resulting adjacent `b` letters can be reduced to `a` or `c`. The last rewrite needs both new attributes. Which earlier rewrite was performed first has no effect on those requirements. With the interval representation, the program can record this fact before enumerating the two orders.

The thesis illustrates the size of this opportunity with a separate production system that rewrites independent positions in a string. In the original representation its unsuccessful case has 1024 states, and a variant with a final goal-producing rule has 1025. With the dependency representation, the respective search spaces have 11 and 12 elements. The individual changes can be stored separately because the sole final rule is where their effects have to meet. Those counts describe a deliberately structured example. The puzzle tests examine what happens when independent actions coexist with conflicts and alternative reductions.

#### Keeping just the action histories a result needs

A path is an ordered sequence of operators that can be applied from a starting state. A conventional tree search extends a path by trying an applicable operator at the state reached so far. A transposition table can avoid repeated work once two paths have arrived at the same state. Db-search groups applicable paths by the operators they contain. Its equivalence relation takes account of permutations of the same operators. Under the framework’s monotonicity condition, applicable paths using the same operators reach the same final state from the same start.

The useful subset consists of *key classes*. Every path in a key class has the same final operator, called its key. The pair of independent rewrites in `aacc` does not yet constitute a key class, since either can be the last of the two. Appending the rewrite that uses their outputs creates a class with a fixed last action. A class records different allowable orders for its supporting operations, while preserving the action whose preconditions explain why they are there. For `aacc`, the thesis counts 17 applicable paths, 11 equivalence classes, and 7 key classes.

The reduction depends on three restrictions. Monotonicity prevents a path from recreating an attribute after deletion, and in the formal setting attributes acquire their presence from a single source on a path. A singular goal is represented by one attribute. Non-redundancy rules out continuing a path after it has achieved a goal. Together they explain why every solution belongs to a key class. An applicable permutation reaches the same goal, and the action that supplies the goal attribute must come last. If it could come earlier, the remaining part of the path would extend a solution that already existed. Multiple alternative singleton goals are possible, such as different letters to which an axiom can reduce.

To generate these classes, the algorithm examines the relationships between operators. An operator supports a later one by supplying an attribute that the latter requires. Precedence can also come from deletion. An action that still needs a fact must be completed before another action removes it. The transitive chains of such relationships identify the ancestors of an operator. Where neither relationship constrains two adjacent actions, the proof shows that their order can be exchanged. This is how the thesis connects legal reorderings to explicit properties of the actions.

The construction uses a meta-operator, an operation whose inputs are search classes and a proposed next action. If an action can be done immediately, it generates a class consisting of that action alone. Otherwise, the procedure tries to merge a set of existing classes whose keys support or must precede the new action. The merged history has to admit an applicable ordering. The new action must be applicable after it, and the set of supporting classes must be minimal for the application. Shared operators occur only once in a merge. This allows branches that rely in part on the same earlier work to combine without performing that work again.

The thesis proves two properties of the meta-operator in the formal setting. A valid application produces a key class. Conversely, every nonempty key class can be generated from shorter classes. The latter proof follows the ancestors of its key operator. The classes induced by the relevant parents can be merged to obtain the preceding actions, after which the key can be appended. Together with the proof about solutions, this explains both why the restricted space suffices and how to reach it.

The implementation alternates a dependency stage with a combination stage. Starting at the initial state, or at a combination assembled in the previous stage, it first follows all newly available actions that can extend a single class. It then searches for compatible combinations that enable an action requiring their joint effects. A merge that enables no such action is left out. Combination nodes are bookkeeping for the next dependency stage. They need not themselves represent a class with a fixed last operator. A further round is required only if the graph has grown, and new combinations must involve work added since the preceding round.

For comparison, the thesis also gives the puzzle-specific algorithm TRIANGLE. Its entries record the letters to which each interval can be reduced. Singleton intervals begin with their original letters. For a longer interval, the algorithm considers each split into adjacent subintervals, finds the letters obtainable on both sides, and applies the permitted predecessor and successor rewrites. In normalized notation the recurrence is:

```
T[p, q] = succpred(⋃_{p ≤ j < q} (T[p, j] ∩ T[j + 1, q]))
```

Here `T[p, q]` is the set of letters obtainable from the interval with inclusive endpoints `p` and `q`. The index `j` is the end of the left subinterval, and `j + 1` starts the right subinterval. The symbol `∩` retains letters obtainable on both sides of a split. The symbol `⋃` collects the common letters across the splits with `p ≤ j < q`. The function `succpred` returns the circular alphabetical neighbors of those letters. The entry covering the full axiom gives the possible solutions.

#### Using tactical searches inside game proofs

Qubic uses a board that measures 4 by 4 by 4. A group is a straight winning line of four cubes. When the attacker occupies the third cube in a group and the last is still free, the defender must block that last cube or win immediately elsewhere. If the defender has no immediate win, a single threat gives the attacker a way to predict the only reply that avoids immediate defeat. The program can treat the threat and its reply as a single transition, called a meta-move. A double threat leaves separate winning squares available and settles the attack once immediate counterplay has been ruled out.

The attributes of a qubic position identify the contents of individual cubes. A tactical operator uses a group with two attacker cubes and two vacancies, putting the attacking stone in one vacancy and the forced defending stone in the other. The local description makes it possible to combine threats that prepare a later group. Global checks are still needed. A forced reply can accidentally complete a winning line for the defender. A merged line can also contain a defender threat that appears before the attacker’s blocking move. The final board can look safe even though the game would have ended earlier. The implementation checks for defender wins, tracks urgent open threats, and tests an ordering of a merge when the timing of a block matters.

The resulting tactical routine is used to evaluate qubic positions inside proof-number search. White moves first, so a certified white attack proves an OR node and a certified black attack disproves an AND node. When the tactical search fails to find a win, proof-number search can continue. Equivalent positions under board symmetries can share their results. The outer search generally omits white threats as candidate moves, allowing the tactical routine to handle forcing play and the outer search to concentrate on moves that create future opportunities. The thesis describes exceptions where a strong white move both threatens and blocks a black threat.

Go-moku requires an additional step because one threat can have several defensible replies. A *four* leaves a square that completes a five, while a *straight four* leaves winning squares at both ends. A *three* or *broken three* can threaten to create a straight four and can allow the defender more than one immediate answer. Victoria searches for a common attacking sequence by placing all local defensive replies on the board together after each threat. The next attack must work against the combined positions occupied by those replies. For free-style play, where a longer line of the defender’s own stones is also a win, extra defending stones can only make this local test more demanding.

Passing that test produces a potential win. The defender may still be able to interrupt with a faster threat elsewhere. Victoria checks each point in the proposed sequence at which such an interruption is possible. A defender can win directly or force a response that interferes with a square needed by the attack. The tactical routine uses the speed of the current threat to constrain the countersearch. A defender answering a three can interject a four. An immediate winning threat requires a still faster response. Earlier interruptions can change the board on which later replies occur, so the check also considers positions carried forward from earlier defensive searches.

In standard go-moku, only an exact five wins. The search inspects the squares extending a threat’s line because an attacker’s stone there can turn the intended five into an overline. A defender can sometimes force the attacker to place such a stone while responding to a threat. Victoria includes these cases among its checks. In searching for defensive refutations, it allows the free-style rules to provide conservative protection against overlooking an interruption. A candidate whose success is doubtful can be rejected while the outer search continues to look for something it can prove.

The outer go-moku search needs a winning choice for Black at each Black position and coverage of all White replies along the strategy. It ranks Black’s candidates by elementary stone patterns and ordinarily keeps the 10 most promising legal moves among those eligible after defensive checks. This kind of restriction can make a winning proof harder to find, but if a selected move is proved, additional Black choices are unnecessary for the guarantee. White moves are handled differently. The program looks for a Black win that would be available if White passed, then identifies a superset of the squares on which a White placement could spoil that sequence. A newly proved sequence after a White move can reduce the remaining candidates again. Every omitted White move must be covered by a known win for Black.

The studies use explicit game rules, tactical pattern definitions, and search. The awari comparison starts from recorded tournament positions. The puzzle comparison uses randomly generated axioms, and the full game solutions start from opening subproblems. Human-selected moves or heuristic scores guide parts of the latter searches. The evidence for the outcome comes from the resulting strategy and the checks on its continuations.

### Experiments and results

#### Awari positions from tournament games

The awari experiment compares proof of a position’s value across four implementations. The alpha–beta baselines are the plain comparison variant and a variant with transposition handling. Proof-number search is tested with its basic initialization and with the stone-based initialization. The setting was chosen because both search families had a practical reason to perform well. Awari already supported competitive alpha–beta play, while its uneven game trees gave proof-number search opportunities to concentrate on particular lines.

Lithidion played 23 games in the tournaments used to collect positions. The 22 distinct games supplied 1707 occurrences of positions and 1599 unique positions. Each initial test position was given to all four algorithms with a limit of 500,000 nodes. The analysis discarded 2 positions where play had already ended and 496 positions covered directly by the database for positions with 17 stones or fewer. Another 764 positions remained unresolved by every method within the initial budget. The final comparison retained the 337 positions that at least one method could settle within that budget. A method that had failed on a retained position was allowed a much larger retry.

The proposition in each test is that the player to move can win. A successful disproof means the opponent can secure at least a draw. A run can also exhaust its resources before establishing either result. That distinction explains how the thesis can report average search sizes that include some unresolved searches. The alpha–beta runs that reached the retry limit are credited with the quarter billion nodes allowed on those positions. The thesis treats the resulting counts as lower bounds on their cost of finding a solution.

The comparison uses node counts because CPU times are sensitive to details of implementation. The accounting gives alpha–beta the benefit of the move ordering and table entries created earlier in iterative deepening. For each iteration, the thesis counts visits at that iteration’s deepest level. For proof-number search, it counts each node created. These measurements describe search work under the paper’s conventions and must be read with those conventions in mind.

Average nodes counted per position on the 337 final awari test positions The stone-based initialization gives proof-number search the lowest average node count.

**The numbers**

| System or setting | Nodes per position |
| --- | --- |
| Alpha–beta | 7,231,559 |
| Alpha–beta with transpositions | 3,815,548 |
| Basic proof-number search | 83,723 |
| Stone-based proof-number search (this paper) | 56,136 |

Both proof-number variants solved all 337 final positions. The aggregate result is heavily influenced by positions on which alpha–beta ran for a long time. To show how often the advantage occurred, the thesis also ranks positions by the smallest search that solved each one. The 169 easy positions had a solution from at least one method in fewer than 3200 nodes. On those positions the alpha–beta variants together received 84 first-place credits and the proof-number variants received 85. The division looks different in the 168 hard positions. The thesis awards partial credit when methods tie for first, and combines the credit within each search family.

First-place credits by search family on the 168 hard awari positions The proof-number variants most often use the fewest nodes on the hard positions.

**The numbers**

| System or setting | First-place credits |
| --- | --- |
| Alpha–beta variants | 22 |
| Proof-number variants (this paper) | 146 |

The study also groups positions by the cost reported for each algorithm in turn and then by a measure using the results of all four. Grouping by alpha–beta makes its own early groups naturally favorable to alpha–beta, while grouping by proof-number search does the same for its own inexpensive positions. The combined analysis uses the average of the logarithms of the node counts to determine group membership. It still shows an increasing proof-number advantage as the measured problem size grows. This supports the thesis’s interpretation that the ability to work selectively through uneven trees matters most when ordinary searches become expensive.

Lithidion’s tournament record gives a different kind of evidence. It won the awari tournaments at the Computer Olympiads in 1990, 1991, and 1992. Its playing system combined an opening book, alpha–beta, exact endgame data, and tactical proof searches in the version described in detail. Proof-number search checked whether a proposed move lost and whether an opponent’s move permitted a forced win. It found a deep winning line in at least one game against MyProgram. The match cannot isolate its contribution because database size, search extensions, and processing speed also differed. Against Marvin, replay from the position where Lithidion had left its book supported the importance of the opening preparation for the tournament outcome. The proof benchmark and the tournament record answer different questions about the program.

#### The double-letter puzzle under exhaustive search

For each starting string length from 1 to 20, the thesis generated 100 random strings, producing 2000 axioms. The comparison used depth-first search with and without a transposition table, dependency-based search, and TRIANGLE. Each method was intended to find all obtainable single letters. The depth-first variants had resource caps, so the experiment recorded incomplete runs as well as cases where a solution was missed. Dependency-based search and TRIANGLE finished every selected instance.

Depth-first search with transpositions stopped at its 100,000-node limit on 26 runs. Only one of those early stops caused it to miss a solution. Without transpositions, the 1,000,000-node limit was insufficient in 129 runs, with at least one solution missed in 24. A cap can stop an exhaustive traversal after it has already found every answer, which explains why the counts of early stops and missing answers differ.

Dependency-based search’s hardest puzzle in the sample took 3934 nodes to establish that no single-letter result was possible. Neither depth-first variant finished that instance within its limit. At axiom length 20, the thesis reports that the mean space traversed by depth-first search without transpositions was more than 1,200 times as large as the mean dependency-based graph. It reports a factor of 20 attributable to transpositions and a remaining difference of more than 60 between depth-first search with transpositions and dependency-based search. The comparison with a table is therefore important. Caching identical positions removes some repeated work, and the dependency representation still removes a substantial amount beyond that.

Through length 18, db-search created fewer nodes on average than the number of entries considered by TRIANGLE. TRIANGLE visits a prescribed range of substrings, while db-search can finish quickly when the starting string offers few reductions. The thesis explicitly distinguishes this node comparison from computational cost. Candidate combinations can be expensive to find, and TRIANGLE has the advantage in time complexity. The results establish a reduction in the explored space compared with the general-purpose baselines and show why different measures are needed to compare against a specialized procedure.

#### Building and checking the qubic strategy

Patashnik had already solved qubic using hand-selected strategic moves and a program to find forcing sequences. Allis’s implementation uses the same opening division for comparison. A first move at a corner or central cube represents one of the two distinct choices up to symmetry. After that opening choice, Black has 12 inequivalent replies. White’s next choices are made by hand so that the resulting positions can be grouped by symmetry. Generating the replies from that group leaves 195 opening subproblems at depth 4.

The search actually starts from 193 four-ply positions and 2 six-ply positions. Those deeper starting points include a white threat and the forced black reply. The preceding positions have intersecting lines in which White’s move can create a threat while taking away a strong black option. This is precisely the sort of move that the usual restriction on White’s threatening moves would suppress. The explicit choices make it possible to handle those cases without changing the rules used through the rest of the search.

The 195 searches took 55,700 CPU seconds, or approximately 15.5 hours, on a SPARCstation 2 with 128 Megabytes of working memory. The reported median size of a proof-number graph was 4,000 nodes and the reported average was 10,000. The most difficult graph, for the position identified by white cubes 0 and 3 and black cubes 21 and 22, contained 310,424 nodes. Tactical evaluation was frequent. The thesis records 3.5 million evaluations for White to move and 0.9 million for Black to move. Among the evaluations large enough to trigger the program’s reporting threshold, 31% found a win. The largest successful tactical evaluation took 2,008 nodes, while the largest unsuccessful one took 3,153.

The stored solution contains 6654 positions with a winning white move. The reported deep example takes 33 ply. Much of that example consists of White meeting threats that Black creates to prolong play. The strategic choices and the actual length of a played line are consequently distinct measures. The search is designed to establish a win even when it discovers a continuation that takes longer than another available win.

The tactical wins were checked by replaying the moves from their starting position and testing the implied blocks, possible defender threats, and the final line. A second check examined the merged solution database. At White positions a stored successor had to provide a winning choice. At Black positions each legal successor had to be in the database or covered by a tactical win. The checked strategy confirms Patashnik’s first-player result by a search that uses more automation for the strategic choices.

#### Victoria’s solutions for free-style and standard go-moku

In go-moku, there are 35 distinct White replies to the opening center move after symmetry is taken into account. Earlier expert analysis discussed in the thesis covers the nearby replies in depth. Victoria’s proof has to cover the remaining replies as well. The full proof-number search would exceed available working storage, so the authors divide the opening into several hundred subproblems. Some Black moves used to define these subproblems come from expert analysis, and others are suggested by proof and disproof numbers from unsuccessful searches. The thesis puts the manually chosen Black moves at less than one percent of the Black moves in the solution.

Each completed search can add a database of proved positions. Victoria uses that data both to assemble the final strategy and to shorten subsequent searches that arrive at an already solved position. This makes the work dependent on the order of subproblems. A difficult search can become much smaller when a branch reaches a result established elsewhere. The figures therefore describe the recorded solution process, including shared results, instead of treating each starting position as an isolated benchmark.

CPU time for Victoria to solve unrestricted go-moku on the 15 x 15 board Victoria took longer to establish the win when overlines did not count.

**The numbers**

| System or setting | CPU days |
| --- | --- |
| Free-style go-moku with Victoria (this paper) | 11.9 |
| Standard go-moku with Victoria | 15.1 |

The calculations ran on 11 SUN SPARCstations. The CPU times cover the successful work with the final version of Victoria, excluding processes that were interrupted and restarted as well as earlier debugging runs. The combined proof-number searches grew 5.3 million nodes for free-style play and 6.3 million for standard play. The tactical work is nested inside those counts. An internal node prompted 10-20 independent db-searches on average, excluding the separate searches for defensive refutations. That difference in units matters when comparing a proof tree’s size with the amount of computation it took to build.

The free-style solution has 138,790 database records and the standard solution has 153,284. Both reach a reported depth of 35 ply in their stored trees. The final check examines each stored position with Black to move for a successor that sustains the win. At White positions it generates every legal move and checks that it reaches a stored continuation or allows a winning threat sequence for Black. This check found missing pieces of the database during development and revealed a bug in the related-squares generator. Both finished databases passed the check. The result is a win for Black in both variants, including the one that requires an exact five.

### What the ablations show

#### What the proof numbers contribute

The give-away chess experiment isolates a change in how proof and disproof numbers are initialized. The implemented rules require a capture when one is available, and the goal is to be unable to move. The experiment omits castling and en-passant capture. Two versions of Prove-away analyze each position of a random game. When neither can settle the position within 25,000 nodes, the game advances by a random legal move. It stops when either version finds a proof. From 30 games the thesis excludes three duplicates, then reruns the basic version with more memory where the original limit prevented a comparison of completed searches.

The enhanced version estimates initial costs from the number of children that will need evaluation. The reported average branching factor of developed nodes is 2.9 with that initialization and 10.5 with the standard one. This is evidence that the change steers the search toward positions with fewer children, which was the intended effect. Counting possible moves has its own cost. The thesis reports a slowdown of roughly 20% per node, while the saving in node work yields an overall CPU gain of more than a factor of 6. Each position on which only one version succeeded within the original stopping budget was solved by the enhanced version. The random games and the stopping rule define the scope of that comparison.

The awari variants offer a second test of initialization with a different source of information. On the hard positions, stones pn beats basic pn in the pairwise comparison by 126 against 42. The cheaper average for stones pn in the full final set, together with the per-position counts, suggests that the improvement is spread across many difficult positions. Basic pn already outperforms both alpha–beta variants in the full-set average. The stone counts improve an existing advantage in this setup, and the gain cannot be credited entirely to the domain heuristic.

The memory figures describe another practical enhancement. In the solved awari tests, removing settled subtrees reduces the maximum stored tree size substantially relative to the number of nodes created. The thesis describes the saving as about a factor of 2. A search that ends without a proof may leave more of its tree unresolved and offer fewer opportunities for deletion. In qubic, solved positions are shared across branches, so deleting an expensive solved position can cause work to be repeated. The implementation retains the positions that took search to solve and omits terminal ones settled by evaluation. Allis reports a memory reduction of roughly 70% for the implementation’s removal policy.

#### What the dependency representation contributes

The two depth-first baselines on the double-letter puzzle show what can be saved simply by recording repeated states. That comparison gives db-search a more demanding baseline than plain enumeration because a conventional transposition table already avoids rechecking continuations from states it has seen. Db-search still reduces the graph substantially. Its additional advantage comes from organizing actions around their dependencies. It can keep independently obtained facts in separate histories until a rewrite needs both, saving intermediate combinations that a table would only recognize after they had been generated.

The TRIANGLE baseline probes a different question. Since each entry summarizes all possible reductions of an interval, much of the puzzle’s structure is already captured by that representation. Db-search’s smaller average node count through length 18 shows the benefit of following available rewrites and avoiding work in sparse instances. The cost of matching compatible histories explains why the thesis stops short of calling it a faster puzzle algorithm overall. A reduction in graph size and a reduction in running time require separate evidence.

The qubic comparison with Patashnik tests a full application more than a single isolated change. Patashnik’s strategic moves were chosen by hand and resulted in 10% fewer strategic choices than the proof-number strategy in the comparison. His method placed particular value on keeping this part small because the work had to be done manually. Depending on whether it compares the entire job, typical calls, or difficult calls, the thesis estimates that dependency-based tactical evaluation outperforms the earlier forced-sequence search by a factor of 5 to 40. Those estimates use an assumed difference in machine speed. They establish a plausible range for the advantage and have less precision than a comparison on the same machines with identical subproblems.

#### How tactical shortcuts affect the evidence

Qubic gives a direct test of one shortcut in the combination stage. A merge might be legal in some orders and fail in others because a defender threat must be answered in time. The implementation checks the chosen representative order and rejects the merge if that order fails. Allis compares it with a version that omits the timing test. On less than 1% of the tested positions, the unchecked version proposed a win where the checked version found none. Some extra suggestions may be valid lines lost through the shortcut, while others may be invalid lines allowed by the absence of the check. The comparison measures disagreement between variants and gives only an upper indication of how often valid opportunities were lost in that sample.

Go-moku offers several smaller analyses. Leaving the unpaid cost of a frontier node at its standard value encouraged proof-number search to remain in deep forcing lines. Assigning higher initial costs at greater depths produced a broader, shallower search and improved the authors’ comparisons on go-moku. The tactical module could still find a deep line. The comparison supports using depth to change the order in which alternatives receive effort. The thesis gives no comprehensive numerical decomposition of how that setting interacts with tactical evaluation, selected Black moves, and stored transpositions.

A different shortcut stops some tactical searches after they have proposed many locally winning lines that fail under global defensive checks. The thesis reports that setting the threshold to 10 increased efficiency with a small loss of efficacy. It also gives a concrete example of narrowing White’s replies by intersecting the sets of squares relevant to different certified attacks. The initial set has 35 squares and children are grown for 19 after the procedure. This example shows how the branch reduction works. The independent enumeration of White’s replies during final checking is what establishes coverage in the completed solution.

The standard and free-style runs also show sensitivity to the rules. The recorded standard run creates a 20% larger search tree. Exact-five play requires the program to reject potential winning continuations involving overlines and to check the extensions of the relevant lines. The difference in search size describes what happened in the reported solution process. Because completed subproblems were reused as the searches progressed, the figures include the effects of that evolving database and the order in which results were found.

### Limitations

#### Limits identified in the thesis

Basic proof-number search treats unresolved frontier nodes alike before looking at their place in the tree. Its probability assumptions motivate pursuing a small proof set, but the algorithm does not know how likely particular leaves are to become true, false, or remain unknown. The shape of the current tree provides the guidance. Domain-specific initializations can be helpful precisely because they distinguish leaves. The thesis cautions that the new numbers can lose their interpretation as lower bounds on ordinary node work. It reports that tuning such values in Othello required repeated experiments and leaves their behavior across domains as an open question.

The search also minimizes an estimate of remaining effort in the current tree. The full proof incorporates work that has already been completed, and the procedure can follow a line that eventually proves much longer than another. Similarly, db-search can stop at the first tactical win it finds. The thesis therefore treats the displayed deep qubic and go-moku variations as examples produced by the solving strategy. Establishing the game length when the winner tries to finish as quickly as possible and the loser tries to prolong play would require a different objective.

Working storage limits proof-number search because its selection procedure needs access to the developed tree. The thesis reports that PN² uses memory in proportion to the square root of its explored node count and that it performed roughly triple the node-processing work of standard proof-number search in tests on awari and draughts. The authors limit that empirical overhead claim to the range they investigated. Transpositions introduce a further qualification. Shared nodes make the arithmetic counts approximate in acyclic graphs. In cyclic graphs, repetition rules can change the value of a position according to its path. The thesis explains that a practical shortcut that propagates a repetition value on every incoming path can yield an unreliable proof of that value.

Dependency-based search’s completeness theorem has a defined scope. The monotonicity, singleton-goal, and non-redundancy conditions support the reduction for the formal single-agent problem. Game tactics require additional rules for timing and defense. Qubic’s representative-order check can reject a merge that has a valid ordering. In go-moku, the multiple-stone reply restricts the search to attacks using common moves across replies, and the defensive pass accepts potential interruptions conservatively. Both mechanisms may lose usable attacking sequences. For the solution effort, the distinction that matters is between being unable to find a tactical proof and certifying a line that the defender can actually refute.

The author also points out that combination search can become costly even with a smaller graph. The generic pseudocode is given for pairs, while go-moku can require combinations of up to four nodes. A domain can offer tests that rule out many candidates, but such tests must be developed for its operators and conflicts. The thesis leaves the broader applicability of db-search beyond the studied domains for further investigation.

Finally, the game proofs depend on implementations substantial enough to contain mistakes. The database check bypasses the proof-number search and its selective move generator, and qubic also has independent replay checks for tactical lines. In go-moku, both solving and final database checking call the same db-search routine. A defect shared by those calls could escape the final check. The thesis grounds its confidence in systematic testing of defensive possibilities, the detection and repair of other defects, and the checks passed by both finished databases.

#### Limits apparent from the experimental setup

The awari results apply to a selected subset of positions from games involving Lithidion. The filter admits positions solved by either search family within the initial budget and drops those beyond every method’s reach. It provides a comparison on positions where practical proof was possible for at least one method. Extrapolating that result to the awari opening would put the claim in the part of the problem that the filter was designed to remove. The censored alpha–beta runs also leave the precise cost of a completed baseline search unknown. The reported averages describe the tests with those runs charged the stated limit.

The puzzle study compares particular implementations and node budgets on random axioms with lengths from 1 to 20. The depth-first searches are stopped at their caps, so their recorded node counts do not give the sizes of all fully explored trees. The costs that dominate in a different operator system could also be different. Frequent conflicts can make it expensive to find valid combinations, and a structure suited to an interval table can offer a strong specialized alternative. The formal reduction explains when solutions are preserved. The empirical measurements describe the search effort in this puzzle.

The game solutions are constructive evidence for the stated openings and rules. The white choices used to start qubic’s subproblems and the selected Black moves in go-moku are legitimate parts of the resulting strategies. They limit what can be inferred about obtaining those strategies automatically from an empty board. The game values also leave other rulesets open, including opening restrictions and the asymmetric restrictions of renju. For either solved game, a claim about optimal play from arbitrary legal positions would require a strong solution, beyond the opening strategies reported here.

The survey’s observation about experience has a different evidential basis from the game proofs. Allis connects gaps in playing strength to the difficulty of acquiring patterns and recognizing where they apply, especially in go and bridge. He describes distinct obstacles in the two games, from evaluating a group of stones to interpreting a partnership’s bids. The account draws on how players learn and on what contemporary programs could do. It identifies a plausible obstacle for investigation. A controlled test that changes experience while holding the rest of the playing system fixed would be needed to isolate its effect.

### What came after

The later study [Mastering chess and shogi by self-play with a general reinforcement learning algorithm](https://md.research.elamur.ai/free/en/papers/al-2017-mastering-chess-shogi-self-play/) (2017) uses self-play and reinforcement learning to pursue mastery in chess and shogi. It cites Allis’s thesis and addresses the question of how a game program acquires the ability to play well. Allis had treated the capacity to gain experience and apply it flexibly as an obstacle that several games made visible. He also discussed a precedent in backgammon, where TD-Gammon used its own games to acquire an evaluation function.

The connection is clearest through the thesis’s distinction between playing strength and solving a game. A self-play study addresses how successful play can emerge from experience. An opening proof establishes a strategy’s guarantee by accounting for the opponent’s replies. The later citation connects those strands of game research. The thesis’s proof-number and dependency-based techniques concern the evidence needed to settle a position, while the later work’s stated method uses experience from play as the way to improve decisions.

## Cite

Cite as L.V. Allis. 1994. Searching for solutions in games and artificial intelligence.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.26481/dis.19940923la](https://doi.org/10.26481/dis.19940923la)

```bibtex
@misc{allis1994searching,
  title = {{Searching for solutions in games and artificial intelligence}},
  author = {L.V. Allis},
  year = {1994},
  doi = {10.26481/dis.19940923la},
  url = {https://doi.org/10.26481/dis.19940923la}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
