A modern chess application built with Electron and React, featuring integrated Stockfish AI engine for intelligent gameplay.
Main interface showing the chessboard, move history, and control buttons with LinkedIn-inspired design
Before you begin, ensure you have the following installed:
For Windows builds on macOS/Linux, Wine will be automatically downloaded.
git clone https://github.com/sensorario/scarsoscacco.git
cd scarsoscacco
npm install
# Start both Vite and Electron automatically
npm run dev:electron
This single command will:
- Start the Vite dev server on
http://localhost:5173
- Wait for Vite to be ready
- Automatically launch Electron with hot reload
- Enable developer tools
npm run dist
# macOS only
npm run dist:mac
# Windows only
npm run dist:win
# Linux only
npm run dist:linux
npm run build
Builded files will be found in the dist/
folder.
- Make Your Move - Drag and drop pieces on the board
- AI Response - Stockfish automatically plays the best response
- View History - See all moves in the right panel
- Manual AI Move - Click "Mossa Stockfish" for AI to play when it's your turn
- Reset Game - Click "Reset" to start a new game
Script | Description |
---|---|
npm run dev |
Start Vite development server |
npm run dev:electron |
Start both Vite and Electron (recommended for development) |
npm run build |
Build for production |
npm run electron |
Start Electron app |
npm run dist |
Build distributables for all platforms |
npm run dist:mac |
Build for macOS only |
npm run dist:win |
Build for Windows only |
npm run dist:linux |
Build for Linux only |
npm run lint |
Run ESLint |
npm run preview |
Preview production build |
- Electron - Desktop app framework
- React - UI library
- Vite - Build tool and dev server
- React Chessboard - Chess board component
- Chess.js - Chess game logic
- Stockfish.wasm - Chess engine
- Inter Font - Modern typography