Published online by Cambridge University Press: 29 May 2025
Officers is a take-and-break game in which a move consists of removing a bean from a heap and leaving the remaining beans from that heap in exactly one or two nonempty heaps. It is an open question as to whether or not the Grundy values of this game are eventually periodic; answering this question in the positive for take-and-break games generally requires computing enough Grundy values to explicitly find the period. We contribute to this search by presenting two novel parallelization strategies that, combined with additional optimizations, accelerate the computation of Grundy values by nearly 60 times compared to the previous state of the art. The resulting implementation computes over 5 million values per second, and has computed a total of more than 140 trillion values over the course of 18 months. To date, no period has been found.
1. Introduction
Officers is an impartial game played with beans arranged into heaps. On each move, a player selects a heap with at least two beans and removes exactly one bean from the heap. If at least two beans remain in the heap, then the player may also optionally split the remaining heap into two. Officers is an example of an octal game [Berlekamp, Conway and Guy 2001]: a take-and-break game where each legal move can be described as removing k beans from a heap, then possibly splitting any remaining beans, leaving behind exactly 0, 1 or 2 nonempty heaps. The name “octal game” comes from the fact that such games can conveniently be described as a string of octal digits (traditionally preceded by a decimal point with trailing zeros omitted), where the k-th digit after the decimal point encodes the legal moves involving the removal of k beans from a heap. The binary representation of a digit has three bits, with bit m indicating whether or not it is legal to leave exactly m nonempty heaps. Thus, if the k-th digit is zero then it is never legal to remove exactly k beans. Under this encoding, Officers is the game .6: only the first digit after the decimal point is nonzero (only one bean can be removed), and this digit has bits 1 and 2 set (exactly 1 or 2 nonempty heaps can remain).
To save this book to your Kindle, first ensure no-reply@cambridge-org.demo.remotlog.com is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.