Wythoff's Game
   HOME

TheInfoList



OR:

Wythoff's game is a two-player mathematical
subtraction game In combinatorial game theory, a subtraction game is an abstract strategy game whose state can be represented by a natural number or vector of numbers (for instance, the numbers of game tokens in piles of tokens, or the positions of pieces on board) ...
, played with two piles of counters. Players take turns removing counters from one or both piles; when removing counters from both piles, the numbers of counters removed from each pile must be equal. The game ends when one player removes the last counter or counters, thus winning. An equivalent description of the game is that a single
chess queen The queen (♕, ♛) is the most powerful piece in the game of chess. It can move any number of squares vertically, horizontally or , combining the powers of the rook and bishop. Each player starts the game with one queen, placed in the middle o ...
is placed somewhere on a large grid of squares, and each player can move the queen towards the lower left corner of the grid: south, west, or southwest, any number of steps. The winner is the player who moves the queen into the corner. The two Cartesian coordinates of the queen correspond to the sizes of two piles in the formulation of the game involving removing counters from piles.
Martin Gardner Martin Gardner (October 21, 1914May 22, 2010) was an American popular mathematics and popular science writer with interests also encompassing scientific skepticism, micromagic, philosophy, religion, and literatureespecially the writings of Lew ...
in his March 1977 "
Mathematical Games column Over a period of 24 years (January 1957 – December 1980), Martin Gardner wrote 288 consecutive monthly "Mathematical Games" columns for ''Scientific American'' magazine. During the next years, through June 1986, Gardner wrote 9 more columns, ...
" in ''
Scientific American ''Scientific American'', informally abbreviated ''SciAm'' or sometimes ''SA'', is an American popular science magazine. Many famous scientists, including Albert Einstein and Nikola Tesla, have contributed articles to it. In print since 1845, it ...
'' claims that the game was played in China under the name 捡石子 ''jiǎn shízǐ'' ("picking stones"). The Dutch mathematician W. A. Wythoff published a mathematical analysis of the game in 1907.


Optimal strategy

Any position in the game can be described by a pair of
integers An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
(''n'', ''m'') with ''n'' ≤ ''m'', describing the size of both piles in the position or the coordinates of the queen. The strategy of the game revolves around ''cold positions'' and ''hot positions'': in a cold position, the player whose turn it is to move will lose with best play, while in a hot position, the player whose turn it is to move will win with best play. The
optimal Mathematical optimization (alternatively spelled ''optimisation'') or mathematical programming is the selection of a best element, with regard to some criterion, from some set of available alternatives. It is generally divided into two subfi ...
strategy from a hot position is to move to any reachable cold position. The classification of positions into hot and cold can be carried out
recursively Recursion (adjective: ''recursive'') occurs when a thing is defined in terms of itself or of its type. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in mathematics ...
with the following three rules: #(0,0) is a cold position. #Any position from which a cold position can be reached in a single move is a hot position. #If every move leads to a hot position, then a position is cold. For instance, all positions of the form (0, ''m'') and (''m'', ''m'') with ''m'' > 0 are hot, by rule 2. However, the position (1,2) is cold, because the only positions that can be reached from it, (0,1), (0,2), (1,0) and (1,1), are all hot. The cold positions (''n'', ''m'') with the smallest values of ''n'' and ''m'' are (0, 0), (1, 2), (3, 5), (4, 7), (6, 10) and (8, 13). (sequence and in
OEIS The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the ...
) (Also see ) For
misère game Misère (French for "destitution"), misere, bettel, betl, or (German for "beggar"; equivalent terms in other languages include , , ) is a bid in various card games, and the player who bids misère undertakes to win no tricks or as few as possib ...
of this game, (0, 1) and (2, 2) are cold positions, and a position (''n'', ''m'') with ''m'', ''n'' > 2 is cold if and only if (''n'', ''m'') in normal game is cold.


Formula for cold positions

Wythoff discovered that the cold positions follow a regular pattern determined by the
golden ratio In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Expressed algebraically, for quantities a and b with a > b > 0, where the Greek letter phi ( ...
. Specifically, if ''k'' is any natural number and :n_k = \lfloor k \phi \rfloor = \lfloor m_k \phi \rfloor -m_k \, :m_k = \lfloor k \phi^2 \rfloor = \lceil n_k \phi \rceil = n_k + k \, where φ is the golden ratio and we are using the
floor function In mathematics and computer science, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least int ...
, then (''n''''k'', ''m''''k'') is the ''k''th cold position. These two sequences of numbers are recorded in the
Online Encyclopedia of Integer Sequences The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the ...
as and , respectively. The two sequences ''nk'' and ''mk'' are the
Beatty sequence In mathematics, a Beatty sequence (or homogeneous Beatty sequence) is the sequence of integers found by taking the floor of the positive multiples of a positive irrational number. Beatty sequences are named after Samuel Beatty, who wrote about th ...
s associated with the equation :\frac + \frac = 1 \,. As is true in general for pairs of Beatty sequences, these two sequences are complementary: each positive integer appears exactly once in either sequence.


See also

* Nim *
Grundy's game Grundy's game is a two-player mathematical game of strategy. The starting configuration is a single heap of objects, and the two players take turn splitting a single heap into two heaps of different sizes. The game ends when only heaps of size two ...
* Subtract a square *
Wythoff array In mathematics, the Wythoff array is an infinite matrix of integers derived from the Fibonacci sequence and named after Dutch mathematician Willem Abraham Wythoff. Every positive integer occurs exactly once in the array, and every integer sequence ...


References


External links

* * {{cbignore Mathematical games