Skip to content

A classic Solitaire card game with a smooth drag-and-drop interface, undo functionality, and a mobile-friendly design.

Notifications You must be signed in to change notification settings

trisDeveloper/solitaire

Repository files navigation

Solitaire Game

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.

Next.js React TypeScript React Beautiful DnD Tailwind CSS

Demo

Note

This Solitaire Klondike game is part of the Drunk Mode app on iOS, where users can unlock their blocked apps by solving puzzles to 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.

solitaire game screenshot

Features

  • Interactive Drag-and-Drop Interface: Easily drag and drop puzzle pieces to their correct positions.
  • Responsive Design: The game is designed to work on various screen sizes, providing a seamless experience on both desktop and mobile devices.
  • Dynamic Puzzle Generation: The puzzle pieces are dynamically generated, ensuring a new challenge each time you play.
  • Logic Handling: Efficient handling of game logic, including piece snapping and position validation.

Usage

  1. Starting a New Game: Click the NEW button to shuffle the deck and start a new game.

  2. Undo Last Move: Click the UNDO button to revert the last move.

  3. Drag and Drop: Drag cards to move them according to Solitaire rules. Cards can be moved within the tableau, from the waste pile, and to the foundations.

About

A classic Solitaire card game with a smooth drag-and-drop interface, undo functionality, and a mobile-friendly design.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages