User Tools

Site Tools


user:bwilson3:start

<html> <style> body {

 background-color:#faf5f2 ! important;
 color:#e87b81;

}

div.dokuwiki div.toc {

 float:left ! important;
 margin-top:2em ! important;

} </style> </html>

Freecell Game Wiki

FreeCell is a solitaire-based card game played with a 52-card standard deck.

Rules: Construction and layout:

  • One standard 52-card deck is used.
  • There are four freecells and four open tables.
  • Cards are dealt into eight cascades, four of which comprise seven cards and four of which comprise six. This version is played from right to left due to stack printing difficulties.

Building during play:

  • The right most card of each cascade begins a column.
  • Columns must be built down by alternating colors (h or d build on c or s).
  • Tables are built up by suit.

Moves:

  • Any cell card or top card of any column may be moved to build on a column, or moved to an empty freecell, an empty column, or its table.

Victory:

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

Challenges/Insights:

The coding for this program proved to be quite difficult simply because of the number of moves there are. Each rule requires a different scenario in the program. Since the game is built using stacks, I found that it took a lot of code to get everything done correctly. During testing, I kept finding more problems, simply because I hadn't considered every possible rule. The hardest part was dealing with the stacks and figuring out how to print them out. I ended up printing the game right to left instead of up and down because I was unable to print stacks vertically.

user/bwilson3/start.txt · Last modified: 2010/10/11 19:35 by bwilson3