A high-performance, browser-based chess game built with modern web technologies: Vite, React, and TypeScript.
Play a seamless game of chess with a friend locally or challenge the powerful Stockfish-powered AI (web worker). This project features a robust rules engine that handles move generation, legal move validation, special moves (castling, en passant), and draw rules.
- Full Rules Engine: Custom-built in TypeScript, ensuring accurate gameplay.
- Stockfish AI Integration: Play against a world-class AI engine running directly in your browser using Web Workers.
- Interactive UI: Smooth click-and-drag interactions, move history, and captured pieces tracking.
- Modern Tech Stack: Leverages React 19, Vite 7, and TypeScript for a fast, responsive experience.
- SignalR Support: Prepared for real-time multiplayer with integrated SignalR (backend included).
- Frontend: React, TypeScript, Vite
- AI Engine: Stockfish (via Web Worker)
- Backend: .NET 9 with SignalR (optional for multiplayer)
- Tooling: Oxlint, Oxfmt, Vitest
-
Clone the repository:
git clone https://github.com/cburns/chess.git cd chess/frontend -
Install dependencies:
bun install # or npm install -
Start the development server:
bun run dev
bun testbun run buildThis project is licensed under the MIT License.