This is a classic Solitaire game built with modern web technologies. The game leverages Next.js, React, TypeScript, and react-beautiful-dnd for an interactive and responsive user experience.
Note
This Solitaire Klondike game is part of the Drunk Mode iOS app on Apple Store, where users solve puzzles to unlock restricted apps and prove their sobriety. If you're a developer, you can also create games for the app by visiting the Drunk mode repo on GitHub. Try out the live demo here.
- Drag-and-Drop Interface: Utilizes React Beautiful DnD for smooth, intuitive drag-and-drop interactions. Move cards with ease across the tableau, waste pile, and foundations.
- Responsive Design: Built for both desktop and mobile devices, ensuring a seamless gameplay experience regardless of screen size.
- Dynamic Game Logic: The game’s logic efficiently handles valid moves, snapping, and position validation for authentic Solitaire rules.
- Undo Last Move: Step back through your actions with the UNDO feature, ideal for strategizing and improving gameplay.
- Shuffle & New Game: Start fresh by shuffling the deck, making each session unique.
- Start a New Game: Click
NEWto shuffle the deck and begin a fresh game. - Undo Last Move: Click
UNDOto revert your previous move. - Drag & Drop: Use drag-and-drop to organize cards following traditional Solitaire rules.
- Clone the Repository
git clone https://github.com/trisDeveloper/solitaire - Ensure you have Node.js and Yarn installed, then install the dependencies
yarn install - Start the Next.js development server to run the app locally
yarn dev - Open
http://localhost:6969/in your browser to view the game.
Contributions are welcome! Please feel free to open issues or submit pull requests. Make sure to follow coding conventions and add tests if possible.
MIT License. See the LICENSE file for details.
