# Pyramid Solitaire

Pyramid Solitaire consists of the following piles of cards:

The Pyramid: The pyramid makes up the main playing table. It consists of 28 cards which are distributed in 7 rows. Each card is partially covered by two cards except for the topmost cards.

The Stock: This is the pile of faced down cards at the bottom left of the screen. It is used to draw cards from which are dealt to the waste.

The Waste: This is the pile of the card at the bottom left corner of the screen next to the stock. At the beginning of the game, this pile is empty and is then used to contain the cards from the stock. The cards from the waste can be matched with the cards from the Pyramid to remove them from the game.

### Layout:

The game is played using one deck of cards, out of which 28 cards are placed face-up on the seven rows of the pyramid while the remaining 24 cards are placed face down on the stock. The waste pile starts off empty. In the beginning, only the top cards are playable but as you move further in the game and move the cards, more cards become playable from the Pyramid.

### Objective:

The objective of Pyramid Solitaire is to remove all the cards from the Pyramid. The cards be can be removed from the game by matching two cards whose ranks equal 13 together. For example, you can match 7 and 6 irrespective of their suits and both the cards will be removed from the game. If there are no possible moves left on the pyramid then cards from the Stock and Waste can be matched and removed from the game in a similar order.

### Allowed Moves:

Move cards around the Pyramid: If both the cards of the Pyramid are open, not covered by any card and the rank of both the cards equals 13 then you can move one card onto another and both will be removed from the game.

Move the top card of the Waste to an open Pyramid card: You can drag the top card of the waste onto an open Pyramid card if the rank of both the cards equals to 13. For example, you can drag a 10 from the waste onto an open 3 on the pyramid and both the cards will be removed from the game.

Flip cards from the Stock onto the Waste: You can flip the cards from the Stock to the Waste just by clicking the top card of the Stock.

Reset the Stock: Once the stock is empty and all the cards have been flipped then click on the Stock again and all the cards from the waste will be put back into the stock. You can reset the Stock as many times as you want to.

Remove a King from the game: Since the rank of the King alone equals to 13 and the cards can only be removed if the rank of two cards is 13. Since the rank of King alone is 13, it can't be matched with any other card so, it can be removed manually by double-clicking on the King.

Unlimited Undos: The game offers unlimited undos. You can undo your moves as many times as you want to.