Klondike Solitaire – Final Release is a modern, fully responsive web adaptation of the classic Klondike Solitaire game. This project faithfully implements the official solitaire rules—including proper deck shuffling, dealing into tableau piles (with only the last card face-up), Stock, Waste, and four Foundation piles—with the added benefit of native drag & drop support for an intuitive moving of individual cards or entire sequences.
The design is sleek and responsive, ensuring an excellent user experience on both desktop and mobile devices.
- Responsive Design: Adapts perfectly to various screen sizes including desktops, tablets, and smartphones.
- Official Klondike Rules: Shuffling, dealing into the tableau, Stock, Waste, and Foundations are implemented as per the original rules.
- Drag & Drop Interface: Easily drag and drop cards or card sequences between piles.
- Automatic Card Flipping: Cards in the tableau are automatically turned face-up when their covering card is moved.
- Interactive Help Modal: Provides clear instructions on gameplay.
- Dynamic Feedback: Informative messages guide you when attempting moves.
- Easy New Game Restart: Restart the game with a single click.
-
Clone the Repository:
git clone https://github.com/bocaletto-luca/Solitaire.git
-
Start Server Example Apache2 e open index.html in Web Browser
Stock & Waste:
Click on the Stock pile to move a card to the Waste. Only the top card of the Waste is visible.
Moving Cards:
Drag and drop a card (or an entire sequence from the tableau) from the Waste or any Tableau pile to a valid destination:
- Tableau: Cards can be built in descending order with alternating colors. An empty tableau accepts only a King (with its entire sequence).
- Foundation: Cards are built in ascending order (Ace to King) within the same suit.
Auto Flipping:
When a card is moved from a Tableau pile, the new top card is automatically flipped face-up.
Win Condition:
You win when all 52 cards are moved to the Foundation piles.
Contributions, bug reports, and feature suggestions are always welcome!
Feel free to fork the repository and submit pull requests.
For major changes, please open an issue first to discuss your ideas.
This project is licensed under the GPL License.
Enjoy playing Klondike Solitaire!
Developed by Bocaletto Luca
GPLv3