The classic Klondike Solitaire card game is played by moving cards from one pile to another to arrange them in descending order. The goal is then to organize all the cards into separate foundation piles by suit in ascending order.
The setup for the game requires first dealing 28 cards from the 52 in a standard deck into seven tableau piles with the number of cards in each pile increasing from one to seven from left to right. All cards except the top card in each pile are face-down. The remaining cards become the draw pile, from which cards can be drawn one at a time.
Cards can be moved from one tableau by arranging in descending order and alternating colors. Whenever a face-down card becomes the top of a tableau pile, flip it face-up. The four foundation piles start with an Ace card, and can be built in ascending order with cards of the same suit. When no more moves are possible with just the cards on the tableau piles, then cards can be taken from the draw pile and moved to a tableau pile if possible. The game is won when all cards are moved into the four foundation piles, or lost when no more moves are possible.