Free online Peg Solitaire
Peg Solitaire is the one-player puzzle where you eliminate pegs by jumping them over each other until only one is left — and the real challenge is to leave it exactly in the centre of the board. It is free in the browser, with unlimited undo and the legal moves highlighted. It looks like trial and error, but the mathematics of the cross-shaped board is surprisingly rigid, and understanding it changes how you play.
History
The earliest documented evidence of the game is a French engraving from 1697 showing Anne de Rohan-Chabot, Princess of Soubise, beside a board with pegs: the pastime was already circulating at the court of Louis XIV. The philosopher Gottfried Leibniz commented on it in a text of 1710. The 33-hole board is the English one; the European variant has 37 holes, adding one in each of the four clipped corners.
How to play
The board has 33 holes in a cross shape and starts with 32 pegs and an empty hole in the centre. Tap a peg to select it: if it can jump, its possible destinations appear with a dashed green outline. Tap one and the peg leaps over its neighbour, which leaves the board.
Jumps always run in a straight line, horizontally or vertically, over exactly one neighbouring peg and into the empty hole right behind it. There are no diagonal jumps, and in this version every jump is one move: a peg that jumps twice in a row spends two moves.
Pegs with no jump available are dimmed; if you tap one, the game tells you that piece cannot move right now. Tapping a different movable peg switches the selection, and tapping anywhere else cancels it.
Rules
- The English board of 33 holes (a 7×7 grid minus its four corners), with 32 pegs at the start.
- Only orthogonal jumps, over one neighbouring peg and into the empty hole beyond. The jumped peg is removed.
- Since every jump removes one peg, a finished game is always 31 moves long: the Moves counter always equals 32 minus the Pieces counter.
- Victory is one peg left. If it sits in the centre the game congratulates you with a perfect message; anywhere else it says you were almost there.
- A blocked message appears when no jump remains and two or more pegs are left.
- Undo takes back one jump at a time with no limit, but only while the game is in progress. Once it ends, only New Match works.
- The Best counter is the fewest pieces left in a finished game, and it lasts only while the page stays open: reloading resets it.
Strategies
- Use the eight corner pegs early, while their neighbour and exit hole still exist.
- Keep the group compact. Prefer jumps that bring pegs inwards and do not leave loose pieces far from the rest; an isolated peg rarely rejoins the game.
- Look for chains. One peg can jump several times in a row. The shortest solutions depend on it: the classic 18-move solution uses 31 jumps.
- Plan the ending. For a perfect finish, the last two pegs must sit in the centre’s row or column, one a single hole from it and the other two holes away, so the last jump lands in the middle.
- Test with Undo. Try five or six jumps and step back, instead of deciding in the dark.
- Do not chase the obvious jump. It is usually the one that closes the most routes.
Where the last peg can stop
Plenty of players try to finish “anywhere” and end up frustrated. An exhaustive search through all 187,636,299 positions reachable from the starting layout shows that the final peg can only land on five holes: the centre, or the middle of one of the four arm tips, the outermost hole of each arm. Nowhere else.
So the almost-there message always means the peg stopped on one of the tips: a valid finish, but an imperfect one.
The first jump decides nothing, and chance fails
There are four possible opening jumps, and all four are the same jump rotated. After it there are three replies, two of them mirror images, and every one still leaves a perfect finish possible, as the exhaustive search confirms. The game forgives the opening. The damage happens later.
In 20,000 simulated games with random jumps, half had already lost every chance of finishing on one peg after only 8 jumps (out of 31), and over 90% after 12. In a separate simulation of 2 million random games, the average was 7.6 pegs left, none finished on a single peg, and only 0.3% reached 3 pegs or fewer. Winning takes looking more than one jump ahead.
Pegs that can only leave by jumping
Eight holes, the two outer corners of every arm, can never be captured, because in each direction one of the two neighbouring holes is missing. They are (1, 3), (1, 5), (3, 1), (5, 1), (3, 7), (5, 7), (7, 3) and (7, 5), counting (row, column) from the top and from the left.
The only way to clear those pegs is to make them jump, and each has just two exits: sideways, over the middle peg of the arm tip, or inwards, over the peg directly below it. Both depend on a neighbour and a hole being in the right place. Empty those cells too early and the corners get stuck.
An opening that works
These five jumps are the start of a complete solution, confirmed by computer. Positions are (row, column), counted from the top and from the left; the centre is (4, 4).
- Jump 1: from (6, 4) to (4, 4)
- Jump 2: from (5, 2) to (5, 4)
- Jump 3: from (3, 2) to (5, 2)
- Jump 4: from (3, 3) to (5, 3)
- Jump 5: from (1, 3) to (3, 3)
Tips for beginners
- Dimmed pieces have no jump at the moment. Use that to spot stuck pegs before it is too late.
- Measure progress by pieces left, not by moves: a win is always 31 moves.
- Your short-term goal is to beat the Best counter. Reaching 5 pieces or fewer already beats about 89% of random games.
- Do not leave the corners for last, and do not leave pegs with no neighbours: a peg ringed by holes only returns to play if another peg lands next to it.
- Do not count on Undo after the game ends. It is disabled once you win or get blocked.
Trivia
- The classic, starting with the centre empty and finishing with a peg in the centre, has a minimum solution of 18 moves if a peg jumping several times in a row counts as a single move. It is credited to the Englishman Ernest Bergholt, in 1912. On this game’s counter the same solution reads 31.
- Of the 8.6 billion possible fillings of 33 holes, only 187,636,299 ever occur during a game, and only five of them have a lone peg.
- Checking every one of those positions takes an ordinary computer well under a minute, which is how the figures on this page were verified.
Mobile version
On a phone, tap the peg and then the highlighted destination hole. The board fills the screen width, up to 400 px, and the selected piece gets a white ring. Tapping outside any destination cancels the selection, so an imprecise tap will not ruin the game, and the Undo button covers the rest.
Frequently asked questions
How many moves does it take to win?
Always 31, because every jump removes exactly one peg and you start from 32. That is why the Moves counter always equals 32 minus the Pieces counter.
Can I finish with a peg outside the centre?
Yes, but only on the four arm tips, and the game shows an almost-there message. An exhaustive search shows the last peg cannot stop on any other hole.
How does the Best counter work?
It keeps the fewest pieces left in finished games, whether a win or a block. It lasts only while the page is open; on reload it starts over.
Can I undo moves?
Yes, as many times as you like, one jump at a time. But the button only works during the game; after a win or a block you have to start a new one.
Do pegs jump diagonally?
No. Jumps are always horizontal or vertical, over a single neighbouring peg and into the empty hole right behind it.
Why are some pegs dimmed?
Because they have no possible jump at that moment. If you tap one, the game tells you the piece cannot move right now.
Does every opening lead to a solution?
The four first jumps are equivalent, and the three replies after them still allow a finish on the centre. The difficulty lies in the middle of the game.
What does the blocked message mean?
That no jump remains and two or more pegs are still on the board. The game ends, and the Best counter records how many pieces were left.
Does it work on a phone without a download?
Yes. It runs in the browser, free and with no sign-up; just tap the peg and then the highlighted destination.