A collection of classic card games built with React, TypeScript, and Vite. This project brings together several popular single-player and multiplayer card games in one modern web application with a clean, responsive interface.
♠️ Solitaire (Klondike)- 🕷️ Spider Solitaire
♥️ Hearts♠️ Spades- 🃏 Poker
Each game follows its traditional rules while providing an interactive and user-friendly experience.
- Multiple classic card games in one application
- Modern and responsive user interface
- Interactive card animations and gameplay
- Reusable card and deck components
- Built with TypeScript for improved reliability
- Fast development and build process using Vite
- React
- TypeScript
- Vite
- CSS
- Material UI
- shadcn/ui
- Node.js (v18 or later recommended)
- npm
Clone the repository:
git clone https://github.com/Prinstar/card-deck-games.gitNavigate to the project directory:
cd card-deck-gamesInstall dependencies:
npm installStart the development server:
npm run devOpen the local development URL displayed in your terminal (typically http://localhost:5173).
npm run buildTo preview the production build:
npm run previewcard-deck-games/
├── src/
│ ├── components/
│ ├── games/
│ │ ├── solitaire/
│ │ ├── spider/
│ │ ├── hearts/
│ │ ├── poker/
│ │ └── spades/
│ ├── assets/
│ └── ...
├── public/
├── package.json
├── vite.config.ts
└── README.md
Arrange all cards into four foundation piles by suit from Ace to King.
Build complete sequences of cards from King to Ace to remove them from the table.
Avoid collecting hearts and the Queen of Spades while trying to finish with the lowest score.
A trick-taking partnership game where spades are always the trump suit.
Play classic poker using standard hand rankings such as Pair, Straight, Flush, Full House, Four of a Kind, and Royal Flush.
- Additional card games
- Multiplayer support
- AI opponents
- Game statistics and achievements
- Save and resume games
- Sound effects and animations
- Dark mode
- Accessibility improvements
Contributions are welcome.
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push your branch.
- Open a Pull Request.
This project is licensed under the MIT License unless otherwise specified.
Prinstar