Skip to content

leoomo/Classic_Spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

97 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•ท๏ธ Classic Spider Solitaire

A Tauri recreation of the classic Windows Spider Solitaire

Tauri Rust Svelte

English | ็ฎ€ไฝ“ไธญๆ–‡

๐Ÿ“ธ Screenshot

Gameplay

High-quality vector playing cards โ€” razor sharp at any zoom level


โœจ Features

  • ๐ŸŽฎ Classic Gameplay โ€” Faithful recreation of Windows Spider Solitaire rules
  • ๐Ÿš€ Ultra Lightweight โ€” Installer < 10MB, cold start < 1s
  • ๐Ÿ–ฅ๏ธ Cross-Platform โ€” Windows / macOS / Linux
  • ๐Ÿ‘ด Senior-Friendly โ€” Large fonts, big buttons, clear feedback
  • ๐Ÿ’พ Resume Anytime โ€” Auto-save, pick up where you left off
  • ๐Ÿ“Š Statistics โ€” Track win rate, high score, best time
  • ๐ŸŽจ Vector Cards โ€” High-quality SVG rendering, sharp at any scale
  • โœ… Quality Assured โ€” 1,000-shuffle simulation test ensures correct deck every time

๐Ÿ“ฅ Download

Download

Download Latest Release ยท Supports Windows / macOS


๐Ÿ“– Documentation


๐ŸŽฏ Game Rules

Difficulty Levels

Level Suits Best For
Easy 1 suit (Spade) Beginners
Medium 2 suits (Spade + Heart) Intermediate players
Hard 4 suits Experts

Basic Controls

  1. Move cards โ€” Tap to select, then tap destination; or drag and drop
  2. Deal โ€” Click the stock pile at bottom-right (no column can be empty)
  3. Undo โ€” Unlimited undos (Shortcut: Ctrl+Z)
  4. Redo โ€” Redo after undo (Shortcut: Ctrl+Y)
  5. Hint โ€” Automatically finds movable cards

Win Condition

Form 8 complete same-suit sequences from Kโ†’A to collect all cards.


๐Ÿ› ๏ธ Tech Stack

Layer Technology Purpose
App Framework Tauri 2.x Native window, cross-platform
Backend Logic Rust Game core, state management
Frontend Framework Svelte 5 UI rendering, animations
Styling TailwindCSS 4.x Rapid styling
Testing Rust built-in tests 1,000-shuffle validation, rule tests

๐Ÿ“ฆ Project Structure

classic-spider/
โ”œโ”€โ”€ src-tauri/          # Rust backend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ game/       # Game logic
โ”‚   โ”‚   โ”œโ”€โ”€ commands/   # Tauri commands
โ”‚   โ”‚   โ””โ”€โ”€ storage/    # Data persistence
โ”‚   โ””โ”€โ”€ Cargo.toml
โ”‚
โ”œโ”€โ”€ src/                # Svelte frontend
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ”œโ”€โ”€ components/ # UI components
โ”‚   โ”‚   โ”œโ”€โ”€ stores/     # State management
โ”‚   โ”‚   โ””โ”€โ”€ utils/      # Utilities
โ”‚   โ””โ”€โ”€ assets/         # Static assets
โ”‚
โ””โ”€โ”€ docs/               # Documentation
    โ”œโ”€โ”€ PRD.md
    โ””โ”€โ”€ ARCHITECTURE.md

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • Rust 1.75+
  • pnpm / npm / yarn

Install Dependencies

# Install frontend dependencies
pnpm install

# Rust dependencies will be installed automatically on first build

Development Mode

pnpm tauri dev

Build for Production

pnpm tauri build

๐ŸŽจ Design Philosophy

Optimized for Elderly Users

  • Large fonts & big buttons โ€” Minimum click area 44ร—44px
  • High contrast โ€” Classic dark-green table + white cards
  • Clear feedback โ€” Selection highlight, hover effects
  • Classic style โ€” Skeuomorphic design evokes nostalgia

๐Ÿ“‹ Development Roadmap

  • Phase 1: Foundation

    • Tauri 2.x project initialization
    • Rust core data structures (Card, Deck, GameState)
    • Svelte 5 frontend scaffolding
  • Phase 2: Core Gameplay

    • Drag system (tap-to-select + drag-to-move)
    • Move rule validation (same suit, descending sequence)
    • Deal logic (1 card to each of 10 columns)
    • Collect logic (Kโ†’A complete sequence auto-collected)
  • Phase 3: Experience Polish

    • Undo / Redo system
    • Animations (card moves, dealing)
    • Sound effects
    • Win detection and celebration
  • Phase 4: Release Polish

    • Statistics (win rate, score, time)
    • Save & resume (auto-save)
    • GitHub Actions automated release
    • Cross-platform packaging (Windows / macOS / Linux)
  • Phase 5: Continuous Improvement

    • Hint system (auto-find movable cards)
    • More themes
    • Multi-language support

๐Ÿ“„ License

MIT License


A tribute to the classic, recreating fond memories ๐Ÿ•ท๏ธ

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors