ASI AppsWrite

Games and exercises

PsyGames

Solitaire Pegs: logic puzzle rules

Solitaire Pegs puzzle rules: jump a peg over its neighbour into an empty hole, remove pegs one by one and finish with a single peg left.

What is Solitaire Pegs?

Solitaire Pegs is a one-player jumping game. A number of pegs stand in holes on a board, some holes are empty, and the only thing you can do is jump one peg over its neighbour. The peg you jumped over disappears. You keep going until nobody can jump any more, and you win if exactly one peg is left. The game is also known as Peg Solitaire, and it is possibly one of the oldest puzzle games that people still play today. In PsyGames it is one of the logic puzzles based on the open Simon Tatham’s Portable Puzzle Collection (MIT licence), where it is called Pegs.

This page explains the rules of the Solitaire Pegs puzzle, the drag control, a small example of the thinking involved and the habits that help you finish a board.

The goal and the rules

The board is made of holes. Each hole either holds a peg or is vacant. A space with no peg and no hole at all is an obstacle: nothing can land there and you must plan around it.

A move is a single jump, and it has to meet all of these conditions:

  • the peg you move jumps exactly two holes, horizontally or vertically (never diagonally);
  • the hole it lands in is vacant;
  • the hole in between holds another peg, and that peg is removed.

Because every jump removes exactly one peg, the number of moves is fixed in advance. If a board starts with N pegs, a complete solution is N minus 1 jumps, and it ends with one peg. There is no score and no extra goal: one peg left is the whole task.

The original puzzle can generate boards of a standard shape or of a random shape, and it guarantees that a random board has a solution. The classic standard shapes are the cross, whose traditional English version is the 7×7 layout, and the octagon, the traditional French one. The app description does not say which shapes the PsyGames boards use, so do not assume a particular layout.

How to play Solitaire Pegs in PsyGames

You play by dragging. Put your finger on a peg, drag it over its neighbour and drop it in the empty hole on the other side. The neighbour is jumped and removed. In the original puzzle the vacant spaces you can move into are marked with holes, which helps you see where a jump would end, and only legal jumps are accepted.

A worked example

Picture three holes in a row: a peg, then a peg, then an empty hole. Jump the left peg over the middle one. Now the two left holes are empty and a single peg sits on the right. That is one jump, and one peg is gone.

Now try a single straight row of four holes: empty, peg, peg, peg. The only legal jump takes the third peg (the middle one of the three) over its left neighbour into the empty hole at the left end, and the row becomes peg, empty, empty, peg. The two remaining pegs have two empty holes between them and nothing to jump over, so neither can jump the other. A lone row like this can never be reduced to one peg, which is why real boards are solved with help from the neighbouring rows and columns. The lesson of the example is to ask, before every jump, what the landing peg will have beside it afterwards.

Solving tips and common mistakes

  1. Think backwards. The last jump leaves one peg, so ask where the final peg could end up and which two pegs must be next to each other just before.
  2. Keep the pegs together. A peg with empty holes all around it can only be removed if another peg first lands next to it, and pegs far apart rarely get there. Jump so the remaining pegs form one connected group.
  3. Do not clear one side first and leave stragglers behind. Pegs that were easy to jump early often become unreachable later.
  4. Watch the obstacles. A space with no hole cuts lines of jumps, so a peg beside it has fewer ways to leave.
  5. Look at both directions before you jump. The same pair of pegs can often be used in two ways, and the other direction may leave a better shape.
  6. If no jump is left and more than one peg remains, that attempt cannot be finished. Start again and try a different order rather than hunting for a missing move.

How Solitaire Pegs differs from similar puzzles

In Sokoban you walk around and push things, and pieces never leave the board. In Solitaire Pegs pieces only ever disappear, and a jump can never be undone by moving back, so the whole game is about the order of removals. Fifteen is also about moving pieces into a gap, but the tiles slide one step and every move can be reversed, while pegs jump two holes and are lost. Inertia moves a single ball across a grid, and Same Game also removes pieces, but it removes whole groups of one colour instead of single jumped pegs.

Solitaire Pegs in PsyGames

The app describes the Solitaire Pegs puzzle in one line: jump a peg over its neighbour until a single peg is left. The app lists it in its Chess hub next to Inertia. The full list of puzzles and other games is on the all games page.

Frequently asked questions

What is the goal of Solitaire Pegs?

To remove every peg except one. You remove a peg by jumping another peg over it, so each jump takes exactly one peg off the board.

Can a peg jump diagonally?

No. In the original Pegs puzzle a jump goes horizontally or vertically, over one adjacent peg and into the vacant hole directly behind it.

What do the spaces with no hole mean?

A space with neither a peg nor a hole is an obstacle. You cannot move into it, so you have to work around it.

How do I make a move in PsyGames?

Drag a peg over its neighbour and drop it in the empty hole on the other side. The jumped peg is removed.

More logic puzzles

All games

PsyGames: Brain Training

Learn more: PsyGames