Peg solitaire

Last updated
The Princess of Soubise playing solitaire, 1697 Peg Solitaire 1687 on Portrait of Princess Soubise by Claude-Auguste Berey.jpg
The Princess of Soubise playing solitaire, 1697

Peg Solitaire, Solo Noble, Solo Goli, Marble Solitaire or simply Solitaire is a board game for one player involving movement of pegs on a board with holes. Some sets use marbles in a board with indentations. The game is known as solitaire in Britain and as peg solitaire in the US where 'solitaire' is now the common name for patience.

Contents

The first evidence of the game can be traced back to the court of Louis XIV, and the specific date of 1697, with an engraving made ten years later by Claude Auguste Berey of Anne de Rohan-Chabot, Princess of Soubise, with the puzzle by her side. The August 1697 edition of the French literary magazine Mercure galant contains a description of the board, rules and sample problems. This is the first known reference to the game in print.

The standard game fills the entire board with pegs except for the central hole. The objective is, making valid moves, to empty the entire board except for a solitary peg in the central hole.

Board

Solitaire 01.jpg
English solitaire board
French solitaire.jpg
European peg solitaire board

There are two traditional boards ('.' as an initial peg, 'o' as an initial hole):

EnglishEuropean
     · · ·      · · ·  · · · · · · ·   · · · o · · ·   · · · · · · ·       · · ·      · · ·
     · · ·    · · · · ·  · · · · · · ·   · · · o · · ·   · · · · · · ·     · · · · ·      · · ·

Play

Playing Peg solitaire Spielzug von Solitar.gif
Playing Peg solitaire
Man playing triangular peg solitaire PegSolitaire.jpg
Man playing triangular peg solitaire

A valid move is to jump a peg orthogonally over an adjacent peg into a hole two positions away and then to remove the jumped peg.

In the diagrams which follow, · indicates a peg in a hole, * emboldened indicates the peg to be moved, and o indicates an empty hole. A blue ¤ is the hole the current peg moved from; a red * is the final position of that peg, a red o is the hole of the peg that was jumped and removed.

Thus valid moves in each of the four orthogonal directions are:

* · o  →  ¤o*Jump to right
o · **o¤Jump to left
*¤ ·  →  oJump down o     *
o     * ·  →  oJump up*¤

On an English board, the first three moves might be:

    · · ·             · · ·             · · ·             · · ·      · * ·             · ¤ ·             · o ·             · * ·  · · · · · · ·     · · · o · · ·     · ¤o* · · ·     · o o o · · · · · · o · · ·     · · · * · · ·     · · · · · · ·     · · · ¤ · · · · · · · · · ·     · · · · · · ·     · · · · · · ·     · · · · · · ·     · · ·             · · ·             · · ·             · · ·     · · ·             · · ·             · · ·             · · ·

Strategy

There are many different solutions to the standard problem, and one notation used to describe them assigns letters to the holes (although numbers may also be used):

   English          European     a b c             a b c     d e f           y d e f z g h i j k l m     g h i j k l m n o p x P O N     n o p x P O N M L K J I H G     M L K J I H G     F E D           Z F E D Y     C B A             C B A

This mirror image notation is used, amongst other reasons, since on the European board, one set of alternative games is to start with a hole at some position and to end with a single peg in its mirrored position. On the English board the equivalent alternative games are to start with a hole and end with a peg at the same position.

There is no solution to the European board with the initial hole centrally located, if only orthogonal moves are permitted. This is easily seen as follows, by an argument from Hans Zantema. Divide the positions of the board into A, B and C positions as follows:

    A B C   A B C A B A B C A B C A B C A B C A B C A B C A B C   B C A B C     A B C

Initially with only the central position free, the number of covered A positions is 12, the number of covered B positions is 12, and also the number of covered C positions is 12. After every move the number of covered A positions increases or decreases by one, and the same for the number of covered B positions and the number of covered C positions. Hence after an even number of moves all these three numbers are even, and after an odd number of moves all these three numbers are odd. Hence a final position with only one peg cannot be reached, since that would require that one of these numbers is one (the position of the peg, one is odd), while the other two numbers are zero, hence even.

There are, however, several other configurations where a single initial hole can be reduced to a single peg.

A tactic that can be used is to divide the board into packages of three and to purge (remove) them entirely using one extra peg, the catalyst, that jumps out and then jumps back again. In the example below, the * is the catalyst.:

* · o      ¤o*      o * ·      *o¤   ·     →    ·    →     o     →    o   ·          ·          ¤          o

This technique can be used with a line of 3, a block of 2·3 and a 6-peg L shape with a base of length 3 and upright of length 4.

Other alternate games include starting with two empty holes and finishing with two pegs in those holes. Also starting with one hole here and ending with one peg there. On an English board, the hole can be anywhere and the final peg can only end up where multiples of three permit. Thus a hole at a can only leave a single peg at a, p, O or C.

Studies on peg solitaire

A thorough analysis of the game is known. [1] This analysis introduced a notion called pagoda function which is a strong tool to show the infeasibility of a given generalized peg solitaire problem.

A solution for finding a pagoda function, which demonstrates the infeasibility of a given problem, is formulated as a linear programming problem and solvable in polynomial time. [2]

A paper in 1990 dealt with the generalized Hi-Q problems which are equivalent to the peg solitaire problems and showed their NP-completeness. [3]

A 1996 paper formulated a peg solitaire problem as a combinatorial optimization problem and discussed the properties of the feasible region called 'a solitaire cone'. [4]

In 1999 peg solitaire was completely solved on a computer using an exhaustive search through all possible variants. It was achieved making use of the symmetries, efficient storage of board constellations and hashing. [5]

In 2001 an efficient method for solving peg solitaire problems was developed. [2]

An unpublished study from 1989 on a generalized version of the game on the English board showed that each possible problem in the generalized game has 29 possible distinct solutions, excluding symmetries, as the English board contains 9 distinct 3×3 sub-squares. One consequence of this analysis is to put a lower bound on the size of possible "inverted position" problems, in which the cells initially occupied are left empty and vice versa. Any solution to such a problem must contain a minimum of 11 moves, irrespective of the exact details of the problem.

It can be proved using abstract algebra that there are only 5 fixed board positions where the game can successfully end with one peg. [6]

Solutions to the English game

Interactive solution guide for English Peg Solitaire. Peg Solitaire interactive solution guide.svg
Interactive solution guide for English Peg Solitaire.

The shortest solution to the standard English game involves 18 moves, counting multiple jumps as single moves:

This solution was found in 1912 by Ernest Bergholt and proven to be the shortest possible by John Beasley in 1964. [7]

This solution can also be seen on a page that also introduces the Wolstenholme notation, which is designed to make memorizing the solution easier.

Other solutions include the following list. In these, the notation used is

 x:x=ex,lj,ck,Pf,DP,GI,JH,mG,GI,ik,gi,LJ,JH,Hl,lj,jh,CK,pF,AC,CK,Mg,gi,ac,ck,kI,dp,pF,FD,DP,Pp,ox  x:x=ex,lj,xe/hj,Ki,jh/ai,ca,fd,hj,ai,jh/MK,gM,hL,Fp,MK,pF/CK,DF,AC,JL,CK,LJ/PD,GI,mG,JH,GI,DP/Ox  j:j=lj,Ik,jl/hj,Ki,jh/mk,Gm,Hl,fP,mk,Pf/ai,ca,fd,hj,ai,jh/MK,gM,hL,Fp,MK,pF/CK,DF,AC,JL,CK,LJ/Jj  i:i=ki,Jj,ik/lj,Ik,jl/AI,FD,CA,HJ,AI,JH/mk,Hl,Gm,fP,mk,Pf/ai,ca,fd,hj,ai,jh/gi,Mg,Lh,pd,gi,dp/Ki  e:e=xe/lj,Ik,jl/ck,ac,df,lj,ck,jl/GI,lH,mG,DP,GI,PD/AI,FD,CA,JH,AI,HJ/pF,MK,gM,JL,MK,Fp/hj,ox,xe  d:d=fd,xe,df/lj,ck,ac,Pf,ck,jl/DP,KI,PD/GI,lH,mG,DP,GI,PD/CK,DF,AC,LJ,CK,JL/MK,gM,hL,pF,MK,Fp/pd  b:b=jb,lj/ck,ac,Pf,ck/DP,GI,mG,JH,GI,PD/LJ,CK,JL/MK,gM,hL,pF,MK,Fp/xo,dp,ox/xe/AI/BJ,JH,Hl,lj,jb  b:x=jb,lj/ck,ac,Pf,ck/DP,GI,mG,JH,GI,PD/LJ,CK,JL/MK,gM,hL,pF,MK,Fp/xo,dp,ox/xe/AI/BJ,JH,Hl,lj,ex  a:a=ca,jb,ac/lj,ck,jl/Ik,pP,KI,lj,Ik,jl/GI,lH,mG,DP,GI,PD/CK,DF,AC,LJ,CK,JL/dp,gi,pd,Mg,Lh,gi/ia  a:p=ca,jb,ac/lj,ck,jl/Ik,pP,KI,lj,Ik,jl/GI,lH,mG,DP,GI,PD/CK,DF,AC,LJ,CK,JL/dp,gi,pd,Mg,Lh,gi/dp 
An easily remembered solution of first clearing edges by focusing on the holes circled in white - in figure 1, pegs are labelled in the order they are removed Easy solitaire solution.svg
An easily remembered solution of first clearing edges by focusing on the holes circled in white in figure 1, pegs are labelled in the order they are removed

Brute force attack on standard English peg solitaire

The only place it is possible to end up with a solitary peg is the centre, or the middle of one of the edges; on the last jump, there will always be an option of choosing whether to end in the centre or the edge.

Following is a table over the number (Possible Board Positions) of possible board positions after n jumps, and the possibility of the same peg moved to make a further jump (No Further Jumps). Interesting to note is that the shortest way to fail the game is in six moves, and the solution (besides its rotations and reflections) is unique. An example of this is as follows: 4 → 16; 23 → 9; 14 → 16; 17 → 15; 19 → 17; 31 → 23. (In this notation, the pegs are numbered from left to right, starting with 0, and moving down each row and to the far left once each row is marked.)

NOTE: If one board position can be rotated and/or flipped into another board position, the board positions are counted as identical.

Since there can only be 31 jumps, modern computers can easily examine all game positions in a reasonable time. [8]

The above sequence "PBP" has been entered as A112737 in OEIS. Note that the total number of reachable board positions (sum of the sequence) is 23,475,688, while the total number of possible board positions is 8,589,934,590 (33bit-1) (2^33), so only about 2.2% of all possible board positions can be reached starting with the center vacant.

It is also possible to generate all board positions. The results below have been obtained using the mcrl2 toolset (see the peg_solitaire example in the distribution).

In the results below, it has generated all the board positions it really reached starting with the center vacant and finishing in the central hole.

Solutions to the European game

There are 3 initial non-congruent positions that have solutions. [9] These are:

1)

          0 1 2 3 4 5 6         0     o · ·         1   · · · · ·         2 · · · · · · ·         3 · · · · · · ·         4 · · · · · · ·         5   · · · · ·         6     · · ·

Possible solution: [2:2-0:2, 2:0-2:2, 1:4-1:2, 3:4-1:4, 3:2-3:4, 2:3-2:1, 5:3-3:3, 3:0-3:2, 5:1-3:1, 4:5-4:3, 5:5-5:3, 0:4-2:4, 2:1-4:1, 2:4-4:4, 5:2-5:4, 3:6-3:4, 1:1-1:3, 2:6-2:4, 0:3-2:3, 3:2-5:2, 3:4-3:2, 6:2-4:2, 3:2-5:2, 4:0-4:2, 4:3-4:1, 6:4-6:2, 6:2-4:2, 4:1-4:3, 4:3-4:5, 4:6-4:4, 5:4-3:4, 3:4-1:4, 1:5-1:3, 2:3-0:3, 0:2-0:4]

2)

          0 1 2 3 4 5 6         0     · · ·         1   · · o · ·         2 · · · · · · ·         3 · · · · · · ·         4 · · · · · · ·         5   · · · · ·         6     · · ·

Possible solution: [1:1-1:3, 3:2-1:2, 3:4-3:2, 1:4-3:4, 5:3-3:3, 4:1-4:3, 2:1-4:1, 2:6-2:4, 4:4-4:2, 3:4-1:4, 3:2-3:4, 5:1-3:1, 4:6-2:6, 3:0-3:2, 4:5-2:5, 0:2-2:2, 2:6-2:4, 6:4-4:4, 3:4-5:4, 2:3-2:1, 2:0-2:2, 1:4-3:4, 5:5-5:3, 6:3-4:3, 4:3-4:1, 6:2-4:2, 3:2-5:2, 4:0-4:2, 5:2-3:2, 3:2-1:2, 1:2-1:4, 0:4-2:4, 3:4-1:4, 1:5-1:3, 0:3-2:3]

and 3)

          0 1 2 3 4 5 6         0     · · ·         1   · · · · ·         2 · · · o · · ·         3 · · · · · · ·         4 · · · · · · ·         5   · · · · ·         6     · · ·

Possible solution: [2:1-2:3, 0:2-2:2, 4:1-2:1, 4:3-4:1, 2:3-4:3, 1:4-1:2, 2:1-2:3, 0:4-0:2, 4:4-4:2, 3:4-1:4, 6:3-4:3, 1:1-1:3, 4:6-4:4, 5:1-3:1, 2:6-2:4, 1:4-1:2, 0:2-2:2, 3:6-3:4, 4:3-4:1, 6:2-4:2, 2:3-2:1, 4:1-4:3, 5:5-5:3, 2:0-2:2, 2:2-4:2, 3:4-5:4, 4:3-4:1, 3:0-3:2, 6:4-4:4, 4:0-4:2, 3:2-5:2, 5:2-5:4, 5:4-3:4, 3:4-1:4, 1:5-1:3]

Board variants

Peg solitaire has been played on other size boards, although the two given above are the most popular. It has also been played on a triangular board, with jumps allowed in all 3 directions. As long as the variant has the proper "parity" and is large enough, it will probably be solvable.

Peg solitaire game board shapes:
(1) French (European) style, 37 holes, 17th century;
(2) J. C. Wiegleb, 1779, Germany, 45 holes;
(3) Asymmetrical 3-3-2-2 as described by George Bell, 20th century;
(4) English style (standard), 33 holes;
(5) Diamond, 41 holes;
(6) Triangular, 15 holes.
Grey = the hole for the survivor. Peg Solitaire game board shapes.svg
Peg solitaire game board shapes:
(1) French (European) style, 37 holes, 17th century;
(2) J. C. Wiegleb, 1779, Germany, 45 holes;
(3) Asymmetrical 3-3-2-2 as described by George Bell, 20th century;
(4) English style (standard), 33 holes;
(5) Diamond, 41 holes;
(6) Triangular, 15 holes.
Grey = the hole for the survivor.

A common triangular variant has five pegs on a side. A solution where the final peg arrives at the initial empty hole is not possible for a hole in one of the three central positions. An empty corner-hole setup can be solved in ten moves, and an empty midside-hole setup in nine (Bell 2008):

Video game

On June 26, 1992, a video game based on peg solitaire was released for the Game Boy. Titled simply Solitaire, the game was developed by Hect. In North America, DTMC released the game as Lazlos' Leap.

Cracker Barrel features the game at every table at their locations. The board featured is triangular with 15 total holes.

In Cowboy Bebop: The Movie , the main antagonist, Vincent Volaju, spends most of their free time playing peg solitaire. The vector for his planned Bioterrorism attack, a type of nanobot, are stored in peg solitaire marbles.

Related Research Articles

<span class="mw-page-title-main">Pentomino</span> Geometric shape formed from five squares

Derived from the Greek word for '5', and "domino", a pentomino is a polyomino of order 5; that is, a polygon in the plane made of 5 equal-sized squares connected edge to edge. When rotations and reflections are not considered to be distinct shapes, there are 12 different free pentominoes. When reflections are considered distinct, there are 18 one-sided pentominoes. When rotations are also considered distinct, there are 63 fixed pentominoes.

<span class="mw-page-title-main">Tower of Hanoi</span> Mathematical puzzle game

The Tower of Hanoi is a mathematical game or puzzle consisting of three rods and a number of disks of various diameters, which can slide onto any rod. The puzzle begins with the disks stacked on one rod in order of decreasing size, the smallest at the top, thus approximating a conical shape. The objective of the puzzle is to move the entire stack to one of the other rods, obeying the following rules:

  1. Only one disk may be moved at a time.
  2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack or on an empty rod.
  3. No disk may be placed on top of a disk that is smaller than it.
<span class="mw-page-title-main">Centroid</span> Mean position of all the points in a shape

In mathematics and physics, the centroid, also known as geometric center or center of figure, of a plane figure or solid figure is the arithmetic mean position of all the points in the surface of the figure. The same definition extends to any object in -dimensional Euclidean space.

<span class="mw-page-title-main">Cribbage</span> Card game

Cribbage, or crib, is a card game, traditionally for two players, that involves playing and grouping cards in combinations which gain points. It can be adapted for three or four players.

<i>Mastermind</i> (board game) Board game

Mastermind or Master Mind is a code-breaking game for two players invented in Israel. It resembles an earlier pencil and paper game called Bulls and Cows that may date back a century.

Schizotypal personality disorder, also known as schizotypal disorder, is a cluster A personality disorder. The Diagnostic and Statistical Manual of Mental Disorders (DSM) classification describes the disorder specifically as a personality disorder characterized by thought disorder, paranoia, a characteristic form of social anxiety, derealization, transient psychosis, and unconventional beliefs. People with this disorder feel pronounced discomfort in forming and maintaining social connections with other people, primarily due to the belief that other people harbor negative thoughts and views about them. Peculiar speech mannerisms and socially unexpected modes of dress are also characteristic. Schizotypal people may react oddly in conversations, not respond, or talk to themselves. They frequently interpret situations as being strange or having unusual meanings for them; paranormal and superstitious beliefs are common. Schizotypal people usually disagree with the suggestion that their thoughts and behaviors are a 'disorder' and seek medical attention for depression or anxiety instead. Schizotypal personality disorder occurs in approximately 3% of the general population and is more commonly diagnosed in males.

<span class="mw-page-title-main">Black Hole (card game)</span>

Black Hole is a patience or solitaire card game. It is of the open builder type; its play is similar to Golf and Tri Peaks, but with a tableau of fans like that of La Belle Lucie. Invented by David Parlett, this game's objective is to compile the entire deck into one foundation.

The Franz–Keldysh effect is a change in optical absorption by a semiconductor when an electric field is applied. The effect is named after the German physicist Walter Franz and Russian physicist Leonid Keldysh.

Muscarinic acetylcholine receptor M<sub>4</sub> Protein-coding gene

The muscarinic acetylcholine receptor M4, also known as the cholinergic receptor, muscarinic 4 (CHRM4), is a protein that, in humans, is encoded by the CHRM4 gene.

<span class="mw-page-title-main">Thyroid hormone receptor beta</span> Protein-coding gene in the species Homo sapiens

Thyroid hormone receptor beta (TR-beta) also known as nuclear receptor subfamily 1, group A, member 2 (NR1A2), is a nuclear receptor protein that in humans is encoded by the THRB gene.

<span class="mw-page-title-main">RGS16</span> Protein-coding gene in the species Homo sapiens

Regulator of G-protein signaling 16 is a protein that in humans is encoded by the RGS16 gene.

<span class="mw-page-title-main">SUMO4</span> Protein-coding gene in the species Homo sapiens

Small ubiquitin-related modifier 4 is a protein that in humans is encoded by the SUMO4 gene.

<span class="mw-page-title-main">IL36A</span> Protein-coding gene in the species Homo sapiens

Interleukin-36 alpha also known as interleukin-1 family member 6 (IL1F6) is a protein that in humans is encoded by the IL36A gene.

<span class="mw-page-title-main">IGBP1</span> Protein-coding gene in the species Homo sapiens

Immunoglobulin-binding protein 1 is a protein that in humans is encoded by the IGBP1 gene.

Vehicle registration plates in Luxembourg bear a maximum of six characters. The standard series in use today uses a format of two letters followed by four digits. Before adoption of the current scheme, marks consisting only of digits and two digits and three numbers letters, were issued. The digit-only plates may only now be issued as a custom plate.

<span class="mw-page-title-main">Zillions of Games</span> General game playing software

Zillions of Games is a commercial general game playing system developed by Jeff Mallett and Mark Lefler in 1998. The game rules are specified with S-expressions, Zillions rule language. It was designed to handle mostly abstract strategy board games or puzzles. After parsing the rules of the game, the system's artificial intelligence can automatically play one or more players. It treats puzzles as solitaire games and its AI can be used to solve them.

Conantokins are a small family of helical peptides that are derived from the venom of predatory marine snails of the genus Conus. Conantokins act as potent and specific antagonists of the N-methyl-D-aspartate receptor (NMDAR). They are the only naturally-derived peptides to do so. The subtypes of conantokins exhibit a surprising variability of selectivity across the NMDAR subunits, and are therefore uniquely useful in developing subunit-specific pharmacological probes.

<span class="mw-page-title-main">G protein-coupled receptor kinase 3</span> Protein-coding gene in the species Homo sapiens

G-protein-coupled receptor kinase 3 (GRK3) is an enzyme that in humans is encoded by the ADRBK2 gene. GRK3 was initially called Beta-adrenergic receptor kinase 2 (βARK-2), and is a member of the G protein-coupled receptor kinase subfamily of the Ser/Thr protein kinases that is most highly similar to GRK2.

<span class="mw-page-title-main">U.S. Navy and U.S. Marine Corps aircraft tail codes</span>

Tail codes on the U.S. Navy aircraft are the markings that help to identify the aircraft's unit and/or base assignment. These codes comprise one or two letters or digits painted on both sides of the vertical stabilizer, on the top right and on the bottom left wings near the tip. Although located both on the vertical stabilizer and the wings from their inception in July 1945, these identification markings are commonly referred as tail codes. It is important to note that tail codes are meant to identify units and assignments, not individual aircraft. For all aircraft of the U.S. Navy and U.S. Marine Corps unique identification is provided by bureau numbers.

<span class="mw-page-title-main">A Manufacturing Language</span> General-purpose programming language

A Manufacturing Language (AML) is a robot programming language created by IBM in the 1970s and 80s, for its RS 1 robot and other robots in its Robot Manufacturing System product line. The systems were used in factory automation by customers such as Plessey and Northern Telecom. They are no longer listed as available from IBM, but robots and parts can occasionally be found in used condition on auction sites, and are refurbished by hobbyists.

References

  1. Berlekamp, E. R.; Conway, J. H.; Guy, R. K. (2001) [1981], Winning Ways for your Mathematical Plays (2nd ed.), A K Peters/CRC Press, ISBN   978-1568811307, OCLC   316054929
  2. 1 2 Kiyomi, M.; Matsui, T. (2001), "Integer Programming Based Algorithms for Peg Solitaire Problems", Proc. 2nd Int. Conf. Computers and Games (CG 2000): Integer programming based algorithms for peg solitaire problems, Lecture Notes in Computer Science, vol. 2063, pp. 229–240, CiteSeerX   10.1.1.65.6244 , doi:10.1007/3-540-45579-5_15, ISBN   978-3-540-43080-3
  3. Uehara, R.; Iwata, S. (1990). "Generalized Hi-Q is NP-complete". Trans. IEICE. 73: 270–273.
  4. Avis, D.; Deza, A. (2001), "On the solitaire cone and its relationship to multi-commodity flows", Mathematical Programming, 90 (1): 27–57, doi:10.1007/PL00011419, S2CID   7852133
  5. Eichler; Jäger; Ludwig (1999), c't 07/1999 Spielverderber, Solitaire mit dem Computer lösen (in German), vol. 7, p. 218
  6. "Mathematics and brainvita", Notes on Mathematics, 28 August 2012, retrieved 6 September 2018
  7. For Beasley's proof see Winning Ways, volume #4 (second edition).
  8. "solboard". github. 2020-08-31. Retrieved 2020-08-31. Implementation of brute force calculation of the Peg solitaire game
  9. Brassine, Michel (December 1981), "Découvrez... le solitaire", Jeux et Stratégie (in French)
  10. See Generalized Cross Boards in: George's Peg Solitaire Page

Further reading