Chess by Sparsh icon

Chess by Sparsh

Under Construction

Local-first chess with computer opponent. React 19/Vite/Stockfish WASM. MIT.

1. Five-Tier Computer Opponent

Whether you're learning the moves or training for a tournament, Chess by Sparsh has an opponent for you. Beginner plays weighted random moves (~800 ELO). Casual uses 1-ply minimax (~1000). Club applies 3-ply alpha-beta pruning with quiescence search (~1450). Expert reaches 5-ply with iterative deepening and transposition tables (~1750). Nightmare loads Stockfish via WebAssembly for a ~2000+ challenge — but only when you select it, keeping the initial bundle lean.

2. Full Chess Rules Engine

Powered by chess.js, the engine enforces every official rule — castling, en passant, promotion (with a dialog to choose your piece), check, checkmate, stalemate, draw by repetition, and the 50-move rule. Legal moves are highlighted on hover. The algebraic notation history tracks every game, captured pieces are displayed, and you can import or export FEN positions at any time.

3. Rich Visual Customization

Five board themes — Classic, Marine, Ember, Forest, and Midnight — completely change the look and feel. Four piece rendering sets offer different visual styles. Moves animate smoothly between squares. Glass-morphism panels and a warm carpet texture background create a physical, tactile feel. Every visual detail is configurable without reloading.

4. PWA with Full Offline Play

Install Chess by Sparsh as a Progressive Web App and play entirely offline. The service worker caches everything — board themes, piece sets, the Stockfish WASM engine — so a single visit is all you need. Game state and preferences persist in localStorage. Programmatic audio via the Web Audio API means no sound files to download.

5. Move Review and Game Controls

Undo a mistake, restart the game, or resign when the position is lost. Step through your game move by move in review mode to analyze your play. Export the full game as PGN to clipboard or download as a file. Keyboard shortcuts and responsive layouts make it playable on desktop, tablet, and mobile.

Part of the Kovina ecosystem

A collection of open-source tools built for ownership, permanence, and everyday use.

Explore All Projects
Open SourceBuilt by Sparsh SamToronto, Canada