Jump to content

FreeCell: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Pndr (talk | contribs)
Undid revision 413763650 by Raven305bal (talk)
Line 56: Line 56:


[http://numin8r.us/gdc.htm Gary Campbell] wrote a [http://numin8r.us/programs solver] for FreeCell for [[DOS]] in [[Intel 8086|8086]] [[Assembly]]. This solver weighs in at 12 kilobytes, and is quite fast. Campbell's solver was incorporated into a [http://numin8r.us/programs FreeCell Player] in 2007.
[http://numin8r.us/gdc.htm Gary Campbell] wrote a [http://numin8r.us/programs solver] for FreeCell for [[DOS]] in [[Intel 8086|8086]] [[Assembly]]. This solver weighs in at 12 kilobytes, and is quite fast. Campbell's solver was incorporated into a [http://numin8r.us/programs FreeCell Player] in 2007.

===Impossible Game===

It is to be believed that game #11982 is the only unbeatable game out of the original 32,000 games and in the new one million games package on the [[Windows XP]] in free cell. Currently, no computer simulation has been able to solve #11982 with using only four free spaces. <ref name='Raven305bal'>{{cite web|url=http://www.jimloy.com/games/freecell.htm |title=FreeCell | last=Loy | first=Jim}} </ref>


== References ==
== References ==

Revision as of 21:17, 1 March 2011

FreeCell
Named variantsBaker's Game
FamilyFreecell
Part way through a game of FreeCell on KDE.

FreeCell is a solitaire-based card game played with a 52-card standard deck. It is fundamentally different from most solitaire games in that nearly all deals can be solved. Although software implementations vary, most versions label the hands with a number (derived from the random number seed used to generate the hand).

A famous Windows version was created by Microsoft.

Rules

Construction and layout:

  • One standard 52-card deck is used.
  • There are four open cells and four open foundations. Some alternate rules use between one to ten cells.
  • Cards are dealt into eight cascades, four of which comprise seven cards and four of which comprise six. Some alternate rules will use between four to ten cascades.

Building during play:

  • The top card of each cascade begins a tableau.
  • Tableaux must be built down by alternating colors.
  • Foundations are built up by suit.

Moves:

  • 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.
  • Complete or partial tableaus may be moved to build on existing tableaus, or moved to empty cascades, by recursively placing and removing cards through intermediate locations. While computer implementations often show this motion, players using physical decks typically move the tableau at once.

Victory:

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

For games with the standard layout (four open cells and eight cascades) most games are easily solved.

History

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 that 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 Baker by his father, who in turn learned it from an Englishman during the 1920's" (p 114). This variant is now called Baker's Game. FreeCell's origins may date back even further to 1945 and a Scandinavian game called Napoleon in St. Helena (not the game Napoleon at St. Helena, also known as Forty Thieves).[1]

Paul Alfille changed Baker's Game by making cards build according to alternate colors, thus creating FreeCell. He implemented the first computerised version of it in the TUTOR programming language for the PLATO educational computer system in 1978. Paul managed to display easily recognisable graphical images of playing cards on the 512×512 monochrome display on the PLATO systems.[2]

This original FreeCell environment allowed games with 4–10 columns and 1–10 cells in addition to the standard 8×4 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 describes this early FreeCell environment in more detail in an interview from 2000.[3]

Solving

Complexity

The FreeCell game has a constant number of cards. This implies that in constant time, a person or computer could list all of the possible moves from a given start configuration and discover a winning set of moves or, assuming the game cannot be solved, the lack thereof. To perform an interesting complexity analysis one must construct a generalized version of the FreeCell game with 4×n cards. This generalized version of the game is NP-complete[4]—it is unlikely that any algorithm, more efficient than a brute-force search, exists that can find solutions for arbitrary generalized FreeCell configurations.

There are 52! (i.e., 52 factorial), or approximately 8×1067, unique 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×1064 unique games.[1]

Solvers

One of the passions of several FreeCell enthusiasts was to construct computer programs that could automatically solve FreeCell. Don Woods wrote a solver for FreeCell and several similar games as early as 1997.[5]

Another known solver is Patsolve of Tom Holroyd. Patsolve uses atomic moves, and since version 3.0 incorporated a weighting function based on the results of a genetic algorithm that made it much faster.[6]

Shlomi Fish started his own solver beginning in 2000.[7] This solver was simply dubbed "Freecell Solver".

Gary Campbell wrote a solver for FreeCell for DOS in 8086 Assembly. This solver weighs in at 12 kilobytes, and is quite fast. Campbell's solver was incorporated into a FreeCell Player in 2007.

References

  1. ^ a b "FreeCell FAQ and links". Retrieved 2010-07-12.
  2. ^ Kaye, Ellen (2002-10-17). "One Down, 31,999 to Go: Surrendering to a Solitary Obsession". New York Times.
  3. ^ Interview with Paul Alfille
  4. ^ Malte Helmert, Complexity results for standard benchmark domains in planning, Artificial Intelligence Journal 143(2):219-262, 2003.
  5. ^ Fish, Shlomi. "Don Woods' Freecell Solver". Archived from the original on 2008-03-02. Retrieved 2010-05-05.
  6. ^ Holroyd, Tom (2001-02-15). "RE: hinting {regarding "Patsolve 3.0"}". Freecell Solver Discussion (fc-solve-discuss) (Mailing list). Retrieved 2010-05-05. {{cite mailing list}}: Unknown parameter |mailinglist= ignored (|mailing-list= suggested) (help)
  7. ^ Fish, Shlomi (2000-06-06). "Freecell Solver Old News - "Freecell Solver 0.4 was released"". Archived from the original on 2008-03-02. Retrieved 2010-05-05.