Skip to main content
QUICK REVIEW

[Paper Review] Computer analysis of Sprouts with nimbers

Julien Lemoine, Simon Viennot|arXiv (Cornell University)|Aug 13, 2010
Artificial Intelligence in GamesComputer Science2 references6 citations
TL;DR

This paper presents a computer-aided analysis of the combinatorial game Sprouts using nimbers and strategic pruning, enabling computation of game outcomes up to 32 spots—significantly extending prior work. The authors confirm the Sprouts conjecture for all computed values and provide hand-checkable proofs for games up to 11 spots via minimized databases, demonstrating that the first player wins iff p ≡ 3, 4, or 5 mod 6.

ABSTRACT

Sprouts is a two-player topological game, invented in 1967 in the University of Cambridge by John Conway and Michael Paterson. The game starts with p spots, and ends in at most 3p-1 moves. The first player who cannot play loses. The complexity of the p-spot game is very high, so that the best hand-checked proof only shows who the winner is for the 7-spot game, and the best previous computer analysis reached p=11. We have written a computer program, using mainly two new ideas. The nimber (also known as Sprague-Grundy number) allows us to compute separately independent subgames; and when the exploration of a part of the game tree seems to be too difficult, we can manually force the program to search elsewhere. Thanks to these improvements, we reached up to p=32. The outcome of the 33-spot game is still unknown, but the biggest computed value is the 47-spot game ! All the computed values support the Sprouts conjecture: the first player has a winning strategy if and only if p is 3, 4 or 5 modulo 6. We have also used a check algorithm to reduce the number of positions needed to prove which player is the winner. It is now possible to hand-check all the games until p=11 in a reasonable amount of time.

Motivation & Objective

  • To overcome the computational intractability of Sprouts beyond small p by leveraging advanced algorithmic techniques.
  • To extend the upper bound of computable Sprouts games beyond the previous limit of p = 11.
  • To validate results through a check algorithm that minimizes databases for hand-checkable proofs.
  • To investigate patterns in nimber values and test the Sprouts conjecture with high confidence.
  • To provide open-source tools and databases for reproducibility and future research.

Proposed method

  • Employing the Sprague-Grundy (nimber) concept to compute game outcomes by treating independent subgames separately.
  • Using a string-based data structure to represent Sprouts positions, enabling efficient programmatic manipulation and game tree traversal.
  • Implementing a hybrid search strategy that combines depth-first exploration with manual intervention to redirect computation when subgame complexity becomes prohibitive.
  • Applying a check algorithm to minimize the number of stored game positions, producing compact, hand-checkable databases for verification.
  • Using PN-search-inspired best-first exploration as a future direction to improve efficiency beyond current depth-first heuristics.
  • Leveraging distributed computing potential by reducing database sizes through the check algorithm.

Experimental results

Research questions

  • RQ1Can the Sprouts conjecture—that the first player wins if and only if p ≡ 3, 4, or 5 mod 6—be confirmed computationally up to p = 32?
  • RQ2What is the maximum number of spots for which the outcome of the Sprouts game can be reliably computed with current algorithmic enhancements?
  • RQ3Can the game tree exploration be made more efficient by integrating human-guided search strategies into automated computation?
  • RQ4To what extent can the size of game databases be minimized while preserving correctness and enabling manual verification?
  • RQ5Are there structural patterns in nimber values that support or refute extensions of the Sprouts conjecture?

Key findings

  • The authors computed the outcome of the p-spot Sprouts game for all p from 1 to 32, with the 47-spot game also partially analyzed.
  • All computed outcomes support the Sprouts conjecture: the first player wins iff p ≡ 3, 4, or 5 mod 6.
  • The nimber of the starting position is 0 when p ≡ 0, 1, or 2 mod 6, and 1 when p ≡ 3, 4, or 5 mod 6, for all p ≤ 32.
  • The number of stored game couples does not strictly increase with p, suggesting recurring structural patterns modulo 6, especially for p = 15, 21, 27, which are computationally challenging due to rare losing children.
  • The check algorithm successfully reduced database sizes, enabling manual verification of 66 losing and 258 winning positions for the 9-spot game in a few hours.
  • The program and all resulting databases are publicly available under the GNU license, facilitating reproducibility and future research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.