# Chess

> Play a full game of chess with a friend on the same device. Standard FIDE rules with legal move validation, a move list, undo and automatic game saving.

- Open the tool: https://overtooled.com/chess
- Category: Games
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: chess, game, board, strategy, checkmate

## In short

Play chess with a friend on one device with full rules enforced.

## Overview

Local two-player chess on one device: White and Black take turns on the same board. There is no computer opponent. Rules are enforced by the chess.js library, and the game is saved automatically so it survives a reload.

## Features

- Full rules: castling, en passant, promotion with a choice of queen, rook, bishop or knight, check, checkmate and stalemate
- Draw detection: stalemate, threefold repetition, insufficient material and the 50-move rule
- Tap a piece to see its legal moves (dots on empty squares, red squares for captures); the last move and a king in check are highlighted
- Undo takes back one half-move at a time, back to the start
- Move list in standard algebraic notation (side panel on wide screens, a Moves sheet on narrow ones)
- Captured pieces strip (above the board, or in the side panel on wide screens), built from the move history so a promoted pawn never shows as captured
- New Game asks for confirmation while a game is in progress

## How to use it

1. White moves first: tap a white piece, then a highlighted square.
2. Pass the device; Black does the same.
3. Choose a piece when a pawn promotes (or Cancel).
4. Play until checkmate or a draw; use Undo to take moves back.

## Inputs

- Tap / click a piece, then a destination square
- Keyboard: Tab to a square button and press Enter or Space to select it

## Outputs

- Status line (whose move, check, checkmate or draw reason)
- Move list and captured pieces
- Result card at the end

## Limits and notes

- No AI opponent, no clocks, no PGN import or export in the UI
- The board is not flipped for Black
- The page shows a work-in-progress banner
- The game is saved as PGN in localStorage (overtooled:chess:pgn); an unreadable save starts a fresh game

## Questions and answers

### How does Chess work?

The game uses the chess.js library to enforce the rules: castling, en passant, promotion, check, checkmate, stalemate and draws by threefold repetition, insufficient material or the 50-move rule. The board is an 8x8 grid of buttons with SVG pieces. Legal moves for the selected piece show as dots, or red squares for captures. Moves are listed in algebraic notation, and the game is saved as PGN so it survives a reload.

### Can I play against the computer?

No. Chess is a local two-player game: White and Black take turns on the same device. There is no computer opponent and there are no difficulty levels.

### Does it support all chess rules?

Yes. Full FIDE rules including castling (kingside and queenside), en passant capture, pawn promotion, check, checkmate, stalemate, and draw conditions. All legal moves are validated.

### Can I take back a move?

Yes. Undo takes back one move at a time and can go all the way back to the start. New Game asks for confirmation if a game is in progress.

## Related tools

- [Four in a Row](https://overtooled.com/four-in-a-row.md): Drop discs to connect four in a row against the computer
- [Go](https://overtooled.com/go.md): Play Go (Weiqi/Baduk) online with territory scoring and capture rules
- [Asteroids](https://overtooled.com/asteroids.md): Play the classic Asteroids space shooter with retro vector graphics
- [Blackjack](https://overtooled.com/blackjack.md): Play Blackjack (21) against the dealer with chips and double down

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
