Clear all the cards from the three peaks. You can only move a card that is adjacent to the top card in the waste pile. As cards are removed away from the peaks, new cards are opened. When no cards can be moved, open a new card to proceed. You will lose when you have no more moves.
Use your mouse