Hostname: page-component-586b7cd67f-r5fsc Total loading time: 0 Render date: 2024-11-26T09:54:57.453Z Has data issue: false hasContentIssue false

Winning strategies: the emergence of base 2 in the game of nim

Published online by Cambridge University Press:  22 June 2022

Eric J. Friedman
Affiliation:
International Computer Science Institute, and Department of Industrial Engineering and Operations Research, U.C. Berkeley, USA e-mail: [email protected]
Adam S. Landsberg
Affiliation:
W. M. Keck Science Department, Claremont McKenna, Pitzer and Scripps Colleges, Claremont, CA 91711 USA e-mail: [email protected]

Extract

Many players know that the secret of winning the game of nim (and other “impartial” combinatorial games) is to write the sizes of the game’s piles in base 2 and then add them together without carry. The proof of this well-known procedure (described below) is both straightforward and convincing. Nonetheless, the procedure still appears magical, as though a rabbit has been pulled out of a hat. Astute students (and frustrated professors) often ask why the winning strategy for such games involves base 2, and not some other base. After all, nothing about the game of nim itself – the game rules, the configuration of the tokens, etc. – provides any hints about the origin of base 2 in this setting. Minimal insight is offered by most published proofs, which themselves tend to either appear almost wizardly in nature (i.e. assume the base-2 method and show that it miraculously solves the problem) or employ combinatorial arguments that supply little abstract intuition (at least to the authors of this article).

Type
Articles
Copyright
© The Authors, 2022 Published by Cambridge University Press on behalf of The Mathematical Association

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

Plambeck, Thane E., Taming the wild in impartial combinatorial games, Electr. J. of Combinat. Number Theory, 5 (2005).Google Scholar
Bouton, C. L., Nim, a game with a complete mathematical theory, Ann. of Math., Series 2, 3 (1902) pp. 3539.Google Scholar
Sprague, R., Uber mathematische kampfspiele, Tohoku Mathematical Journal 41 (1936) pp. 438444.Google Scholar
Grundy, P., Mathematics and games, Eureka 2 (1939) pp. 68.Google Scholar
Guy, R. K. and Smith, C. A. B., The g-values for various games, Proc Cambridge Philos Soc, 52 (1956) pp. 514526.CrossRefGoogle Scholar
Kaplansky, I., Infinite abelian groups , revised edition, Ann Arbor, University of Michigan Press (1969).Google Scholar
Berlekamp, E. R. and Conway, J. H. and Guy, R.K, Winning ways for your mathematical plays, Academic Press (London) (1979).Google Scholar
Plambeck, Thane E. and Siegel, Aaron N., Misère quotients for impartial games, J. of Combinatorial Theory, Series A, 115 (2008) pp. 593622.Google Scholar
Conway, J. H., On Numbers and Games, A. K. Peters (2000).CrossRefGoogle Scholar
Albert, M., Nowakowski, R., and Wolfe, D., Lessons in Play: An Introduction to the Combinatorial Theory of Games, A. K. Peters (2007).Google Scholar
Demaine, Erik D., Playing games with algorithms: Algorithmic combinatorial game theory, International Symposium on Mathematical Foundations of Computer Science, Springer (2001) p. 1833.Google Scholar
Friedman, E. and Landsberg, A.S., On the geometry of combinatorial games: a renormalization approach, Games of No Chance 3 MSRI Publication, 56 (2009).Google Scholar
Friedman, E. and Landsberg, A., Nonlinear dynamics in combinatorial games: Renormalizing chomp, Chaos, 17(2):023117 (2007).CrossRefGoogle ScholarPubMed
Morrison, R. E., Friedman, E., Landsberg, A. S., Combinatorial games with a pass: A dynamical systems approach, Chaos 21 (4), 043108, (2011).CrossRefGoogle Scholar