Playing and Solving Peg Solitaire

Peg solitaire is a popular board game for one player. Choose a challenge problem and start to play.
Moves are made horizontally or vertically. A move can be made if a middle peg has another peg on one side and a hole on the other. In that case, the side peg jumps over the middle peg into the hole, and the middle peg is removed. The object is to remove all but one of the pegs on the board, with the last peg in the center of the board.
Tip: If you cannot solve a puzzle, press the "restart and solve" button to step through a solution.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


[1] M. Kiyomi and T. Matsui, "Integer Programming Based Algorithms for Peg Solitaire Problems," Computers and Games, 2001 pp. 229–240.
[2] C. Jefferson, A. Miguel, I. Miguel, and A. Tarim, "Modelling and Solving English Peg Solitaire," Computers and Operations Research, 33(10), 2006 pp. 2935–2959.
[3] S. S. Skiena, The Algorithm Design Manual, 2nd ed., New York: Springer, 2008 pp. 231–233.
[4] D. E. Knuth, "Estimating the Efficiency of Backtrack Programs," Mathematics of Computation, 29(3), 1975 pp. 121–136.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+