PlayNook

Math & Logic · Solitaire Puzzle

Play Peg Solitaire Online — Free, No Download

Thirty-three holes, one rule and exactly thirty-one jumps — never more, never fewer. What varies is only whether you strand yourself before the end.

Thirty-three holes in a cross. Every one filled but the middle. Jump a peg over its neighbour into the empty hole beyond, take the jumped peg off, and keep going until one is left.

That is the whole game, and it hides a piece of arithmetic that decides the outcome before you touch anything.

How to play peg solitaire

  • Jump orthogonally only — up, down, left, right. Never diagonally.
  • The peg you jump over comes off. Every jump removes exactly one.
  • Finish with one peg. In the centre, if you want the version people mean when they say they solved it.

Why it is always 31 jumps

Each jump takes one peg off. You start with 32 and want to end with one, so it takes 31 jumps — every time, on every route, without exception. There is no faster solution and no slower one.

That is worth saying because it changes what the puzzle is. You are not searching for a short path. You are avoiding dead ends, and a dead end is a position where pegs still stand but no two of them line up on an empty hole.

The number people compete on is a different count: a run by the same peg, jumping several times without stopping, is traditionally one move. By that reckoning the best known solution to this board is 18. Our own search finds a solution easily — 31 jumps, 26 moves counting runs — but finding the shortest is a far harder search than finding one, and we have not done it.

The colouring that decides it before you start

Two copies of the 33-hole peg solitaire board. On the left each hole is coloured by row plus column modulo 3, in three colours. On the right, five holes are ringed in red: the centre and the four arm tips.
Left: the three-colouring. Right: every hole the last peg can possibly occupy if you start from the centre. The other twenty-eight are ruled out by counting.

Colour every hole by (row + column) mod 3. Three colours, and on this board exactly eleven holes of each.

Now look at a jump. It touches three holes in a straight line, and three consecutive holes always carry three different colours. So every jump takes one peg from each of two colour classes and puts one into the third. All three counts change by an odd number — which means the differences between them never change at all.

Do that arithmetic for the starting position and for each possible finish, and the answer falls out without any searching:

Starting with the centre empty
Holes the last peg could occupy5 of 33
Which onesthe centre, and the four arm tips
Ruled out by counting alone28

You can spend an afternoon trying to leave the last peg one hole off-centre. It cannot be done, and no amount of cleverness changes that.

Every starting hole works

Solvability of the game is a different question, and there the answer is generous: from all 33 starting holes you can reach a single peg. We searched each one.

That result also came with a lesson. Our first run reported four holes as impossible — and they were not symmetric to each other. On a board with four-fold rotational symmetry that cannot happen: if a hole is solvable, so is its rotation. The asymmetry was the tell. The four were simply beyond the search limit, and with a larger one they all solved. The symmetry check is now part of the script, precisely so that a search limit can never again be mistaken for a proof.

And it works as a game for two

Peg solitaire is a puzzle by name and by design, but there is a natural two-player version: both players jump in turn on the same board, and whoever cannot jump loses. This board offers it — against the computer or with somebody next to you.

Before building it we checked whether it was worth building, because a variant where every move wins is a formality rather than a game:

Good play against random play97.3 % ± 0.9
Control: random against random, first player46.0 %
Game length24 jumps

The control matters as much as the headline. Had random-against-random come out at 100 % or 0 %, the winner would simply be decided by whether the number of jumps is odd or even, and skill would have nothing to do with it. At 46 % the opening decides nothing — the play does.

97.3 % is a wider gap than almost anything else on this site — wider than Yut Nori at 88 %, wider than the Royal Game of Ur at 93 %. The reason is that this version has no dice in it at all. Which jumps exist depends only on the position, never on whose turn it is, so every position is won or lost from the outset. There is nothing to guess — only right and wrong.

What we have not worked out is who wins the opening position with perfect play on both sides. That tree is too large for the search here, and rather than imply otherwise: it is open.

Play it on paper

There is a printable peg solitaire board here — the 33 holes with the jump directions drawn in, plus a one-page rules sheet. Put a coin in every hole but the middle and you have a set. Thirty-two identical coins sit in printed holes better than anything cut out of paper, which is why the sheet of paper pegs is optional and most people skip it.

The same board as Fox and Geese

This is the cross that Fox and Geese is played on — identical, hole for hole, and we compared the two point by point rather than assuming it. One board, two completely different games: a hunt for two players, and a puzzle for one.

Where it comes from

The trail starts in France. An engraving of 1687 shows a lady of the court with the board, and in 1716 Leibniz wrote about it — which makes peg solitaire one of the earliest puzzles a serious mathematician thought worth analysing. He was interested in exactly the thing above: not how to solve it, but what the rules make impossible.

The English board has 33 holes and is the one here. The French board has 37, and it is not simply a bigger version — the arithmetic comes out differently, and a solution for one is no guide to the other.

If you like this one

  • Towers of Hanoi — the other puzzle where the move count is fixed by arithmetic before you begin
  • The 15 Puzzle — where a parity argument decides which scrambles can be solved at all
  • Nim — a whole game reduced to one piece of binary arithmetic
  • Fox and Geese — the same board, played by two

Can you always still win?

On the triangular board the answer changes with every jump, and it is computable. The triangle peg game solution works out which positions are still winnable and which are already lost — the answer for the fifteen-hole board that turns up in every roadside diner.

Frequently asked questions

+ How do you play peg solitaire?

Every hole but one starts with a peg. A move is a jump: a peg hops straight over a neighbouring peg into the empty hole directly beyond it, and the peg that was jumped comes off the board. Up, down, left and right only, never diagonally. You win by getting down to a single peg — and getting that last peg to land in the centre is the version people mean when they say they solved it.

+ How many moves does peg solitaire take?

Exactly 31 jumps, always. Every jump removes exactly one peg, so going from 32 pegs to one takes 32 − 1 = 31 of them no matter which route you pick. There is no faster solution. The count people actually compete on is different: a run by the same peg, jumping several times in a row, is traditionally counted as one move, and by that reckoning the best known solution to this board is 18.

+ Where can the last peg end up?

Starting from the centre, in only five of the thirty-three holes: the centre itself and the four tips of the arms. The other twenty-eight are impossible, and you do not need to try them to find out. Colour each hole by (row + column) mod 3; every jump touches three holes in a line and therefore all three colours at once, which makes the differences between the colour counts unchangeable. That single fact rules out twenty-eight endings before a peg has moved.

+ Can you always finish with one peg?

From every starting hole on this board, yes. We searched all thirty-three of them and found a solution for each — then checked the answer against the board's own four-fold symmetry, since a hole cannot be solvable while its rotation is not. That check is what caught our first run, where four holes looked impossible and were simply beyond the search limit.

+ Is peg solitaire the same board as Fox and Geese?

The same 33-hole cross, exactly. We compared the two hole sets point by point and there are no deviations. Fox and Geese is a hunt game played on it by two people; peg solitaire is the puzzle one person plays on it. Most people meet the board through the puzzle and are surprised it has another life.

+ Where does peg solitaire come from?

The first solid evidence is French and late seventeenth century — an engraving of 1687 shows a court lady with the board, and Leibniz wrote about it in 1716, which makes it one of the earliest puzzles a mathematician bothered to analyse. The English board with 33 holes is the one shown here; the French board has 37 and behaves differently, which is why the two are not interchangeable.

+ Can peg solitaire be played by two people?

Yes, and this board offers it. Both players jump in turn on the same board and whoever cannot jump loses. We measured whether the variant was worth building before building it: good play beats random play 97.3% of the time, with a control run of random against random landing at 46% so that the result is not simply the parity of the jump count deciding things. That is a wider skill gap than almost anything else here, because this version contains no chance at all — which jumps exist depends only on the position, so every position is won or lost from the start. What we have not determined is who wins the opening with perfect play on both sides; that search is beyond what we ran.

+ What happens if I get stuck?

Undo. There is no clock and no score to protect, and getting stranded with four pegs in opposite corners is how everybody learns which shapes are dead ends. The button steps back as far as you want.

More games like this

Fox and Geese — screenshot of the browser gameBoard Game
Hunt Game2 Players

Fox and Geese

One fox against thirteen geese on the old cross board. The fox jumps to eat; the geese cannot capture at all and win by leaving him nowhere to go.

  • Thirteen against one, and the one is favourite
  • We computed the smallest possible cage — it takes four geese
  • Play a friend online — share a code and chat
Play Fox and Geese
Tangram — screenshot of the browser gamePuzzle
Dissection Puzzle1 Player

Tangram

Seven flat pieces cut from one square. They always cover the same area, so every silhouette needs all seven — the only question is which way round they go.

  • All thirteen convex shapes, ordered easiest to hardest by solutions we counted
  • Pieces snap to corners, so a solution is exact — never almost
  • The famous square is last: it has exactly one solution
Play Tangram
Towers of Hanoi — screenshot of the browser gameMath & Logic
Recursion1 Player

Towers of Hanoi

The puzzle where the answer is known before you start: 2ⁿ−1 moves, never fewer. The question is whether you can find them — and the counter says the instant you cannot.

  • Three to ten discs, with the target 2ⁿ−1 always in view
  • A counter that tells you the moment you leave the shortest path
  • Watch it solve itself, slowly, and see the recursion
Play Towers of Hanoi
Nim — screenshot of the browser gameMath & Logic
Binary1-2 Players

Nim

Take as many marks as you like from one row. Whoever takes the last one wins — or loses, if you agree that first. One line of binary decides every position, and the table on this page shows it live.

  • Play a friend online with a table code, or the computer
  • The nim-sum table runs live beside the board
  • Normal and misère rules, with the ending that catches everyone
Play Nim