Skip to main content
Log in

Two-player Tower of Hanoi

  • Original Paper
  • Published:
International Journal of Game Theory Aims and scope Submit manuscript

Abstract

The Tower of Hanoi game is a classical puzzle in recreational mathematics (Lucas 1883) which also has a strong record in pure mathematics. In a borderland between these two areas we find the characterization of the minimal number of moves, which is \(2^n-1\), to transfer a tower of n disks. But there are also other variations to the game, involving for example real number weights on the moves of the disks. This gives rise to a similar type of problem, but where the final score seeks to be optimized. We study extensions of the one-player setting to two players, invoking classical winning conditions in combinatorial game theory such as the player who moves last wins, or the highest score wins. Here we solve both these winning conditions on three pegs.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

Notes

  1. Such positions could instead be declared drawn and we discuss some variation in Sect. 7.

  2. But, for future reference, we note that there is also another choice for cyclic scoring games, if one of the players repeatedly moves to more negative scores than the other player, then, even though the game might not terminate, one could define it as a loss for the ‘more negative’ player.

  3. This algorithm produces an optimal path for four pegs (Bousch 2014) and is conjectured optimal for any \(k > 4\).

References

  • Albert MH, Nowakowski RJ, Wolfe D (2007) Lessons in play: an introduction to combinatorial game theory. Peters/CRC Press, Wellesley, A.K

    Google Scholar 

  • Berlekamp ER, Conway JH, Guy RK (2001) Winning ways for your mathematical plays, 1–2, Academic Press, London (1982), Second edition, pp. 1–4. A.K. Peters, Wellesley

  • Bousch T (2014) La quatrième tour de Hanoï. Bull Belg Math Soc Simon Stevin 21:895–912

    Google Scholar 

  • Chappelon J, Matsuura A (2012) Generalized Frame-Stewart numbers. Discret Math 312:830–836

    Google Scholar 

  • Conway JH (1976) On numbers and games. Academic, New York

  • Conway JH (1978) Loopy games. In: Bollobás B (ed) Advances in graph theory, number 3 in Ann. Discrete Math., pp 55–74

  • Demaine ED, Hearn RA (2009a) Games, puzzles, and computation. A.K, Peters, Wellesley

    Book  Google Scholar 

  • Demaine ED, Hearn RA (2009b) Playing games with algorithms: algorithmic combinatorial game theory. In: Albert MH, Nowakowski RJ (eds) Games of no chance 3, MSRI Publications, vol 56. Cambridge University Press, Cambridge, pp 3–56

    Chapter  Google Scholar 

  • Ettinger M (1996) Topics in combinatorial games, Phd Thesis, University of Wisconsin

  • Ettinger M (2000) A metric for positional games. Theoret Comput Sci 230:207–219

    Article  Google Scholar 

  • Fraenkel AS, Yesha Y (1986) The generalized Sprague-Grundy function and its invariance under certain mappings. J Combin Theory Ser A 43:165–177

    Article  Google Scholar 

  • Hinz AM (1992) Shortest paths between regular states of the Tower of Hanoi. Inf Sci 63:173–181

    Article  Google Scholar 

  • Hinz AM, Klavžar S, Milutinović U, Petr C (2013) The Tower of Hanoi-Myths and Maths. Birkhäuser, Basel

    Book  Google Scholar 

  • Johnson W (2014) The combinatorial game theory of well-tempered scoring games. Int J Game Theory 43:415–438

    Article  Google Scholar 

  • Larsson U, Neto JP, Nowakowski RJ, Santos CP (2016) Guaranteed scoring games. Electron J Combin 23(3):27

    Google Scholar 

  • Larsson U, Nowakowski RJ, Santos CP (2017) Games with guaranteed scores and waiting moves. Int J Game Theory. https://doi.org/10.1007/s00182-017-0590-x

  • Matsuura A (2011) Analysis of recurrence relations generalized from the 4-peg Tower of Hanoi. IEICE Trans Inf Syst E94-D:220–225

  • Matsuura A, Nishimaki S (2011) The Tower of Hanoi with weighted cost. In: Integers conference 2011, Abstracts, University of West Georgia, Carrollton, Georgia, p 13

  • Milnor J (1953) Sums of positional games. Contributions to the Theory of Games II. Princeton University Press, Princeton, pp 291–301

    Google Scholar 

  • Siegel AN (2013) Combinatorial game theory. Am Math Soc

  • Singmaster D (2017) An historical tour of binary and tours. In Larsson U (ed) Games of no Chance 5. MSRI Publications, Cambridge University Press, Cambridge (accepted)

  • Smith CAB (1966) Graphs and composite games. J Combin Theory Ser A 1:51–81

    Article  Google Scholar 

  • Stewart F (2011) Scoring Play Combinatorial Games, Phd Thesis, University of Dundee . Also a paper with the same title, to appear in U. Larsson (Ed.), Games of no Chance 5, MSRI Publications, Cambridge University Press, Cambridge

  • Wood D (1983) Adjudicating a Towers of Hanoi contest. Int J Comput Math 14:199–207

    Article  Google Scholar 

Download references

Acknowledgements

We thank the anonymous referees for their comments and suggestions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Urban Larsson.

Additional information

The second author was partially supported by the Killam Trusts.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chappelon, J., Larsson, U. & Matsuura, A. Two-player Tower of Hanoi. Int J Game Theory 47, 463–486 (2018). https://doi.org/10.1007/s00182-017-0608-4

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00182-017-0608-4

Keywords

Mathematics Subject Classification

Navigation