A beautiful, responsive Spider Solitaire game built with TypeScript and Vite, deployable on Netlify.
- Classic Spider Solitaire gameplay - Build sequences from King to Ace in the same suit
- Drag & Drop Interface - Intuitive card movement with smooth animations
- Responsive Design - Works on different screen sizes
- Modern UI - Beautiful gradient backgrounds and card animations
- Game Statistics - Track moves and time
- Game Controls - New Game, Hint, and Undo functionality
- Objective: Build 8 complete sequences from King to Ace in the same suit
- Card Movement: Cards can be placed on other cards of the next higher rank (regardless of suit)
- Sequence Movement: Only sequences of the same suit can be moved as a group
- Dealing: Click the stock pile to deal one card to each tableau column
- Winning: Complete all 8 sequences to win the game
- Node.js 18+
- npm
npm install
npm run devnpm run buildnpm run preview- Connect your repository to Netlify
- Build settings are automatically configured via
netlify.toml:- Build command:
npm run build - Publish directory:
dist
- Build command:
- Deploy - Netlify will automatically build and deploy your game
- Run
npm run build - Upload the
distfolder to Netlify
src/
├── Card.ts # Card class with game logic
├── SpiderSolitaire.ts # Main game engine
├── main.ts # Application entry point
├── style.css # Game styling and animations
└── vite-env.d.ts # TypeScript declarations
- TypeScript - Type-safe JavaScript
- Vite - Fast build tool and dev server
- HTML5 - Semantic markup
- CSS3 - Modern styling with animations
- Netlify - Deployment platform
MIT License - feel free to use this project as a base for your own games!