Hackenbush
   HOME

TheInfoList



OR:

Hackenbush is a two-player game invented by mathematician
John Horton Conway John Horton Conway (26 December 1937 – 11 April 2020) was an English mathematician. He was active in the theory of finite groups, knot theory, number theory, combinatorial game theory and coding theory. He also made contributions to many b ...
. It may be played on any configuration of
line segment In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
s connected to one another by their endpoints and to a "ground" line. Other versions of the game use differently colored lines.


Gameplay

The game starts with the players drawing a "ground" line (conventionally, but not necessarily, a horizontal line at the bottom of the paper or other playing area) and several line segments such that each line segment is connected to the ground, either directly at an endpoint, or indirectly, via a chain of other segments connected by endpoints. Any number of segments may meet at a point and thus there may be multiple paths to ground. On their turn, a player "cuts" (erases) any line segment of their choice. Every line segment no longer connected to the ground by any path "falls" (i.e., gets erased). According to the
normal play convention A normal play convention in a game is the method of determining the winner that is generally regarded as standard. For example: *Preventing the other player from being able to move *Being the first player to achieve a target *Holding the highest va ...
of combinatorial game theory, the first player who is unable to move loses. Hackenbush boards can consist of
finite Finite may refer to: * Finite set, a set whose cardinality (number of elements) is some natural number * Finite verb, a verb form that has a subject, usually being inflected or marked for person and/or tense or aspect * "Finite", a song by Sara Gr ...
ly many (in the case of a "finite board") or infinitely many (in the case of an "infinite board") line segments, insofar as the configuration does not violate the
game theory Game theory is the study of mathematical models of strategic interactions. It has applications in many fields of social science, and is used extensively in economics, logic, systems science and computer science. Initially, game theory addressed ...
assumption that the game can be finished in a finite amount of time. On an infinite board, instead, the game can continue on forever, assuming there are infinitely many segments touching the ground.


Variants

In the original folklore version of Hackenbush, any player is allowed to cut any edge: as this is an
impartial game In combinatorial game theory, an impartial game is a game in which the allowable moves depend only on the position and not on which of the two players is currently moving, and where the payoffs are symmetric. In other words, the only difference be ...
it is comparatively straightforward to give a complete analysis using the
Sprague–Grundy theorem In combinatorial game theory, the Sprague–Grundy theorem states that every impartial game under the normal play convention is equivalent to a one-heap game of nim, or to an infinite generalization of nim. It can therefore be represented ...
. Thus the versions of Hackenbush of interest in combinatorial game theory are more complex
partisan game In combinatorial game theory, a game is partisan (sometimes partizan) if it is not impartial. That is, some moves are available to one player and not to the other, or the payoffs are not symmetric. Most games are partisan. For example, in chess, on ...
s, meaning that the options (moves) available to one player would not necessarily be the ones available to the other player if it were their turn to move given the same position. This is achieved in one of two ways: * ''Original Hackenbush:'' All line segments are the same color and may be cut by either player. This means payoffs are symmetric and each player has the same operations based on position on board (in this case structure of drawing). This is also called Green Hackenbush. *''Blue-Red Hackenbush'': Each line segment is colored either red or blue. One player (usually the first, or left, player) is only allowed to cut blue line segments, while the other player (usually the second, or right, player) is only allowed to cut red line segments. *''Blue-Red-Green Hackenbush'': Each line segment is colored red, blue, or green. The rules are the same as for Blue-Red Hackenbush, with the additional stipulation that green line segments can be cut by either player. Blue-Red Hackenbush is merely a special case of Blue-Red-Green Hackenbush, but it is worth noting separately, as its analysis is often much simpler. This is because Blue-Red Hackenbush is a so-called '' cold game'', which means, essentially, that it can never be an advantage to have the first move.


Analysis

Hackenbush has often been used as an example game for demonstrating the definitions and concepts in
combinatorial game theory Combinatorial game theory is a branch of mathematics and theoretical computer science that typically studies sequential games with perfect information. Research in this field has primarily focused on two-player games in which a ''position'' ev ...
, beginning with its use in the books ''
On Numbers and Games ''On Numbers and Games'' is a mathematics book by John Horton Conway first published in 1976. The book is written by a pre-eminent mathematician, and is directed at other mathematicians. The material is, however, developed in a playful and unpr ...
'' and '' Winning Ways for Your Mathematical Plays'' by some of the founders of the field. In particular Blue-Red Hackenbush can be used to construct
surreal number In mathematics, the surreal number system is a total order, totally ordered proper class containing not only the real numbers but also Infinity, infinite and infinitesimal, infinitesimal numbers, respectively larger or smaller in absolute value th ...
s: finite Blue-Red Hackenbush boards can construct dyadic rational numbers, while the values of infinite Blue-Red Hackenbush boards account for
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s and, in the transfinite case, ordinals, and many more general values that are neither. Blue-Red-Green Hackenbush allows for the construction of additional games whose values are not real numbers, such as
star A star is a luminous spheroid of plasma (physics), plasma held together by Self-gravitation, self-gravity. The List of nearest stars and brown dwarfs, nearest star to Earth is the Sun. Many other stars are visible to the naked eye at night sk ...
and all other
nimber In mathematics, the nimbers, also called Grundy numbers (not to be confused with Grundy chromatic numbers), are introduced in combinatorial game theory, where they are defined as the values of heaps in the game Nim. The nimbers are the ordin ...
s. Further analysis of the game can be made using
graph theory In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
by considering the board as a collection of vertices and edges and examining the paths to each vertex that lies on the ground (which should be considered as a distinguished vertex — it does no harm to identify all the ground points together — rather than as a line on the graph). In the impartial version of Hackenbush (the one without player specified colors), it can be thought of using nim heaps by breaking the game up into several cases: vertical, convergent, and divergent. Played exclusively with vertical stacks of line segments, also referred to as bamboo stalks, the game directly becomes Nim and can be directly analyzed as such. Divergent segments, or trees, add an additional wrinkle to the game and require use of the colon principle stating that when branches come together at a vertex, one may replace the branches by a non-branching stalk of length equal to their nim sum. This principle changes the representation of the game to the more basic version of the bamboo stalks. The last possible set of graphs that can be made are convergent ones, also known as arbitrarily rooted graphs. By using the fusion principle, we can state that all vertices on any cycle may be fused together without changing the value of the graph. Therefore, any convergent graph can also be interpreted as a simple bamboo stalk graph. By combining all three types of graphs we can add complexity to the game, without ever changing the nim sum of the game, thereby allowing the game to take the strategies of Nim.


Proof of Colon Principle

The Colon Principle states that when branches come together at a vertex, one may replace the branches by a non-branching stalk of length equal to their nim sum. Consider a fixed but arbitrary graph, ''G'', and select an arbitrary vertex, ''x'', in ''G''. Let ''H1'' and ''H2'' be arbitrary trees (or graphs) that have the same Sprague-Grundy value. Consider the two graphs ''G1'' = ''Gx'' : ''H1'' and ''G2'' = ''Gx'' : ''H2'', where ''Gx'' : ''Hi'' represents the graph constructed by attaching the tree ''Hi'' to the vertex ''x'' of the graph ''G''. The colon principle states that the two graphs ''G1'' and ''G2'' have the same Sprague-Grundy value. Consider the sum of the two games. The claim that ''G1'' and ''G2'' have the same Sprague-Grundy value is equivalent to the claim that the sum of the two games has Sprague-Grundy value 0. In other words, we are to show that the sum ''G1'' + ''G2'' is a P-position. A player is guaranteed to win if they are the second player to move in ''G1'' + ''G2''. If the first player moves by chopping one of the edges in ''G'' in one of the games, then the second player chops the same edge in ''G'' in the other game. (Such a pair of moves may delete ''H1'' and ''H2'' from the games, but otherwise ''H1'' and ''H2'' are not disturbed.) If the first player moves by chopping an edge in ''H1'' or ''H2'', then the Sprague-Grundy values of ''H1'' and ''H2'' are no longer equal, so that there exists a move in ''H1'' or ''H2'' that keeps the Sprague-Grundy values the same. In this way you will always have a reply to every move he may make. This means you will make the last move and so win. File:Figure 6 hackenbush.jpg, An instance in which the game can be reduced using the Colon Principle


References

* John H. Conway, ''
On Numbers and Games ''On Numbers and Games'' is a mathematics book by John Horton Conway first published in 1976. The book is written by a pre-eminent mathematician, and is directed at other mathematicians. The material is, however, developed in a playful and unpr ...
'', 2nd edition, A K Peters, 2000.


External links

{{commons category, Hackenbush game
Hackenstrings, and 0.999... vs. 1Hackenbush on Pencil and Paper Games
Mathematical games Abstract strategy games Combinatorial game theory Paper-and-pencil games John Horton Conway