Spider Solitaire Online

Spider Solitaire endgame techniques

By Spider Solitaire Online Editorial Team · Published

Treat the endgame as starting when the stock is empty. In our one-suit robot games, 84% were won with 14 or fewer hidden cards left at that point, against 14% with 24 or more, so revealing hidden cards is the priority.

"Endgame" is a loose word in Spider Solitaire, because there is no single moment when the middle game ends. In this guide we use a practical definition: the endgame begins when the last stock deal has been made. From then on nothing new arrives, every card in play is on the table, and the game is decided by how well you can work with what is there. This page reports what our tests show about that stage and describes techniques for it. Measurements come from the hint-following robot on one-suit deals and are labelled; the techniques are reasoning from the rules.

How often the endgame is reached

Over 500 one-suit deals (seeds 1 to 500, no undo), the robot reached the point where the stock was empty in 335 games, two thirds of them. In the other 165 it stalled before dealing all five rows. Of the 335, it went on to win 148, or 44.2 percent. At the moment the stock ran out, a typical game had 18.5 hidden cards left in the tableau and 1.6 runs already completed (averages).

So the endgame is where the result is mostly decided, and it is where most of the remaining work lies: in a typical game at that point, more than a sixth of the cards were still face down.

What predicts the result: hidden cards

When we split those 335 games into thirds by the number of hidden cards at the moment the stock ran out, the win rates were far apart:

Hidden cards when the stock ran outGamesWon
0 to 1411183.8%
14 to 2411135.1%
24 to 3911314.2%

This is a striking contrast with the position at the first deal, where the same counts told us almost nothing (see reading the tableau). Once the stock is gone, the number of cards you have not yet seen is the best simple guide to whether the game will be won. It makes sense: each hidden card is a card you cannot yet plan around, and in the endgame there is no more stock to give you fresh options.

A caution. This describes the robot, and it does not mean a human with 20 hidden cards left should give up: people use undo, longer lookahead and empty-column manoeuvres that the robot does not. Treat the figures as a sense of scale. They suggest that revealing cards, not tidying sequences, is the thing to prioritise when the stock runs out.

Six games, for a sense of scale

Statistics hide the texture, so here are the first six one-suit seeds the robot played, with the moment its stock ran out:

SeedStock empty at moveHidden cards thenResult
13534Stalled after 61 moves with 1 run
2873Won in 113 moves (all cards face up at move 111)
35028Stalled after 89 moves with 2 runs
47411Stalled after 89 moves with 2 runs
55426Stalled after 63 moves with 2 runs
7nevernot applicableStalled after 104 moves with 5 runs and cards still in the stock

The pattern fits the table above: the one win had only 3 hidden cards when the stock ran out, and the games with 26 to 34 hidden cards stalled early. Seed 4 is an exception worth noting: only 11 hidden cards remained, and the robot still failed. Hidden-card counts are a guide and not a verdict. Seed 7 shows the other way a robot game can end, by running out of moves it likes while the stock is still full, which a person would answer by dealing.

The last deal

The final deal is the moment to count. Before you make it, ask how many cards are still hidden and how many you could realistically uncover with the moves available. Our data say that the hidden-card count at that point separates strong positions from weak ones, but they do not say what to do about a weak one. Reasonable options are to dig harder for reveals before the last deal, or, if you are in a mode with undo, to rewind and try a different earlier plan.

A routine for the moment the stock runs out

This is reasoning, not a tested procedure. Once the last row is down, take a minute for a short audit.

  1. Count the hidden cards. Add up the face-down cards in every column. Our data suggest that under about fourteen is promising and over about twenty-four is hard, for the robot.
  2. List the columns by depth. The column with the most hidden cards is the one to open up, because it holds the most unknowns.
  3. Find your Kings. Note each King that has cards under it, and count how many empty columns you would need.
  4. Check each suit's supply. In a mixed-suit game, see which suits have long runs and which are scattered. A scattered suit needs the most work.
  5. Pick a plan for the next ten moves. A rough sequence is enough: which reveal, which column to empty, where the pieces of a mixed stack will go.

Techniques for the endgame

These come from the rules and have not been individually tested.

  1. Reveal first, always. With no stock left, every hidden card you uncover is new information and new options. Prefer the moves that reveal, and among those the ones that reveal from the deepest columns.
  2. Use spare columns as a workshop. An empty column lets you park a run, free the card under it and bring the run back. After the last deal, the rule against dealing with an empty column no longer matters, so an empty column can be held for as long as you like.
  3. Sort mixed stacks one piece at a time. In two- and four-suit games, work out which suit each piece belongs to and move the pieces so that same-suit pieces meet. See building sequences.
  4. Finish runs as soon as they are within reach. A completed run leaves the table, freeing columns and turning over the card beneath it.
  5. Unblock Kings. A King with cards under it is stuck until a column empties. Count how many of those you have, because each needs an empty column.
  6. Check every move for what it covers. The cost of a careless move is highest when you have no stock to fall back on.

Mistakes that cost endgames

These are patterns that follow from the rules. We have not measured how often they occur.

  • Moving before counting. With no stock left, a move that buries a card you need cannot be fixed by dealing. Check what you cover.
  • Splitting a run to gain one move. A run you broke has to be rebuilt, and rebuilding takes moves you may not have places for. Our hint penalises this by 40 points for the same reason.
  • Spending the spare column early. After the last deal an empty column is a tool you can keep. Using it for a card that could have gone elsewhere gives it away.
  • Ignoring a stuck King. A King with cards under it needs its own empty column. Plan for it before the position closes up.
  • Playing on without a plan. Short bursts of reveals feel productive. If you have not decided where a mixed stack will end up, you can run out of useful moves with many hidden cards still in play.

Using undo well in the endgame

In modes with undo, the endgame is the best place to use it as a planning tool. You can try a line ten moves deep, see how it ends and rewind. The skill is to use that to learn which structure is worth building and not to explore blindly. Notice where a line fails: is it a King with no column, a suit that never meets, a reveal that comes too late? That is information you can use earlier in the next game. See using undo and hints wisely.

The all-face-up stage and auto-complete

There is a later stage still: when every card is face up and the stock is empty, the remaining play is a puzzle with no hidden information. The game then offers an Auto-complete button (shortcut A) if it can find a way to finish. It runs a bounded search for a winning sequence and, if it finds one, plays it for you. The button does not appear if the search finds no win within its limit.

In our robot test, reaching this stage was effectively the same as winning. All 148 games in which the robot got every card face up with an empty stock were wins, and the median number of moves left was two. That is partly because a robot that has uncovered everything has usually done most of its work, and partly because with a one-suit deck, an all-face-up position is easy to finish. In two- and four-suit games the all-face-up stage can still contain real puzzles, and we have no data on it.

How the robot's games end without a win

The robot did not win 352 of 500 games. In 345 of them it stopped because a position repeated, meaning the hint began going in circles, and in 7 because the hint had nothing to suggest. In 47 percent it still had cards in the stock when it stopped, and 187 made all five deals. The more interesting picture is how many hidden cards remained when it stopped:

Hidden cards left at the end0 to 45 to 910 to 1415 to 1920 or more
Games not won (352)166143735100

The distribution has two humps. A hundred of the stalled games ended deep in trouble, with twenty or more cards still hidden. But 166, nearly half, ended with four or fewer hidden cards: positions that were almost fully open and that the robot could not finish. That second group says more about the robot than about the game. The hint looks four moves ahead and does not plan a finish; a person looking at an almost open board would usually work out the remaining moves, or use the game's Auto-complete once every card is face up. We have not checked how many of those 166 positions were in fact winnable.

The lesson for your own play is therefore two-sided. When the stock runs out with many hidden cards, the game is probably in trouble. When it runs out with few, do not trust a short-sighted plan: slow down and work out the finish.

Questions

Should I try to leave an empty column for the endgame?

Not at the cost of other things, but an empty column is more useful after the last deal than before it, because you no longer have to fill it to deal. See empty columns.

What if the game says there are no more moves?

Then the position cannot be played on. Undo to an earlier point and try another line, or start a new deal. In expert mode there is no undo, so the game is over.

Is it worth playing a position I think is lost?

If undo is available, yes: exploring costs nothing and often shows a line you missed. In a timed or scored mode, starting afresh may be the better use of time.

Related reading

For the choices that lead to a good endgame, see when to deal and the common mistakes. The wider picture is in the full strategy guide.