FreeCell is a solitaire card game played using the standard 52-card deck. It is fundamentally different from most solitaire games in that very few deals are unsolvable, and all cards are dealt face-up from the beginning of the game. It was originally created as a computer game by Paul Alfille. Microsoft has included an implementation of FreeCell in every release of the Windows operating system since 1995, which has greatly contributed to the game's popularity.

Rules

One standard 52-card deck is used. There are four open cells and four open foundations. Cards are dealt face-up into eight cascades, four of which comprise seven cards each and four of which comprise six cards each.

The top card of each cascade begins a sequence. Tableaus must be built down by alternating colors. Foundations are built up by suit. The foundations begin with Ace and are built up to King.

Any cell card or top card of any cascade may be moved to build on a tableau, or moved to an empty cell, an empty cascade, or its foundation.

The game is won after all cards are moved to their foundation piles.

Supermoves

In FreeCell, unlike many solitaire card games, only one card may be moved at a time. Complete or partial tableaus may be moved to build on existing tableaus, or moved to empty cascades, only by a sequence of moves which recursively place and remove cards through intermediate locations.

For example, with one empty cell, the top card of one tableau can be moved to a free cell. The second card from the top of that tableau can now be moved onto another tableau. Then the original top card can be moved from the cell on top of it.

Such a sequence of moves is called a "supermove". Computer implementations often show this motion<!-- and I bet there's a GIF of this somewhere -->, but players using physical decks typically just move the tableau at once.

The maximum number <math>C</math> of cards in a tableau that can be moved to another tableau equals the number of empty cells plus one, with that number doubling for each empty cascade: <math>C = 2^M\times (N+1)</math>, where <math>M</math> is the number of empty cascades and <math>N</math> is the number of empty cells. The maximum number that can be moved to an empty cascade is <math>C/2</math>.

History and variants

One of the oldest ancestors of FreeCell is Eight Off. In the June 1968 edition of Scientific American, Martin Gardner described in his "Mathematical Games" column a game by C. L. Baker which is similar to FreeCell, except that cards on the tableau are built by suit rather than by alternate colors. Gardner wrote, "The game was taught to Baker by his father, who in turn learned it from an Englishman during the 1920s." This variant is now called Baker's Game. FreeCell's origins may date back even further to 1945 and to a Scandinavian game called Napoleon in St. Helena (not the solitaire game Napoleon at St Helena, also known as Forty Thieves). Alfille was able to display easily recognizable graphical images of playing cards on the monochrome display on the PLATO systems.

This original FreeCell environment allowed games with 4–10 columns and 1–10 cells in addition to the standard game. For each variant, the program stored a ranked list of the players with the longest winning streaks. There was also a tournament system that allowed people to compete to win difficult hand-picked deals. Paul Alfille described this early FreeCell environment in more detail in an interview from 2000.

In 2012, researchers used evolutionary computation methods to create winning FreeCell players.

A variant where card sequence movement is not limited by available cells is known as Relaxed FreeCell. It is estimated that around 99.999% of possible deals are solvable. it is unlikely that any algorithm more efficient than a brute-force search exists which can find solutions for arbitrary generalized FreeCell configurations.

There are 52! (i.e., 52 factorial), or approximately 8, distinct deals. However, some games are effectively identical to others because suits assigned to cards are arbitrary or columns can be swapped. After taking these factors into account, there are approximately 1.75 distinct games.