Online Chess Game for Two Players
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.
Runs in your browser. No data leaves your device.
About this tool
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
- White moves first: tap a white piece, then a highlighted square.
- Pass the device; Black does the same.
- Choose a piece when a pawn promotes (or Cancel).
- 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
Frequently Asked Questions
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.