# California Solitaire

California Solitaire is played with 52 playing cards. The playfield contains 4 regions:

• The 4 foundations on which towers are built. A tower contains a single suit. Cards are added to a tower by rank, from lowest to highest. Only the lowest rank may be placed on an empty foundation. Cards may not be removed from a tower.
• The 4 stacks that can be used to hold and organize cards prior to building. Stacks ignore suit. A card may be placed on a stack only if its rank is lower than the rank of the top card of the stack. If a stack becomes empty, any card can be placed on it. The top card of a stack may be removed and placed on another stack or a tower.
• The deck contains all of the unplayed cards, face down. The top card may be removed and played face up on the waste pile.
• The waste pile receives cards only from the deck. The top card of the waste pile may be moved to a stack or a tower.

After shuffling, 4 cards are layed out face up, forming the beginning of the 4 stacks. A fifth card is placed face up on the waste pile. The 4 foundations are initially empty.

The player may move one card at a time. The game is won when all of the towers are completed.

## California Double Solitaire

The two players face each other, with 8 communal foundations between them. The players play independently and quickly, with their own decks, waste piles, and stacks. Either player make make valid placements on any of the foundations. The winner is the first player to place all of per cards on the towers. At the end of a game, at least four towers will be completed, and least one tower will not be completed.

A misplayed card is a forfeit.

## The Towers of Hanoi

Knowledge of the Towers of Hanoi puzzle is useful for managing the stacks, moving cards from one stack to another to increase storage efficiency. The Towers of Hanoi is a complicated puzzle with a trivial recursive solution.

```function hanoi(disc, source, aux, destination) {
if (disc > 0) {
hanoi(disc - 1, source, destination, aux);
console.log("Move disc " + disc + " from " + source + " to " + destination);
hanoi(disc - 1, aux, source, destination);
}
}```

## Online Game

Click on the deck to draw another card to the waste pile.

Click on a card move it. The destination of the card is determined by an advanced blockchain enabled, social graft-driven artificial intelligence technology which will usually place the card where you want it. When it fails, just click the card again. Keep clicking and eventually it will move to the right place.

If you hold down the shift key (if you have one) whilst clicking on a card, it will go somewhere else instead, doing the opposite of the advanced blockchain enabled, social graft-driven artificial intelligence technology. That is usually what you want when you otherwise would not get what you want.