Build your own Chess.
A complete AI build prompt for a local two-player chess board with tested legal moves, game history, and PGN export. Your own code, identity, and workflow.
What your Chess-inspired game will do
Build an original local two-player browser chess app called Boardroom. The main journey is starting a game, playing legal moves on one device, reviewing the move history, and saving or exporting it. Use standard chess rules through a tested rules library and original board/piece assets. The MVP does not require an AI opponent or online matchmaking.
- Rules: delegate legal move generation and validation to a tested chess library such as chess.js. Cover check restrictions, castling rights, en passant, and all promotion choices; never infer legality from piece animation.
- Game outcomes: distinguish checkmate, stalemate, resignation, draw agreement, and supported repetition/move-count/insufficient-material conditions. Document whether a draw is automatic or claimable in this casual local edition.
- Play controls: start a new standard game, flip the board, pause/resume interaction, and offer a confirmed restart. Provide analysis-style undo only when explicitly enabled and visibly mark the game as casual.
- History: maintain algebraic move notation, step through completed-game positions without mutating the live game, and export PGN. Import a bounded valid PGN through the rules library with clear errors.
- Persistence: save initial position, move sequence, outcome, and settings after every move. Reconstruct the engine by replaying validated moves on reload; preserve history-dependent repetition and castling state.
Is a DIY Chess alternative right for you?
Build a chess interface around a tested library so the project focuses on interaction, move history, persistence, and review rather than improvising complex special-move rules.
A useful first project: A casual same-device chess app with accessible controls and a reliable rules dependency.
Start with a smaller version
Import a position with an en passant opportunity and a promotion, verify legal options through the library, then export and reopen the resulting PGN.
Know the tradeoffs
Castling rights, en passant, promotions, and draws depend on more than the current piece layout. Full move history must survive reload; AI strength, tournament clocks, and online ratings are excluded.
Understand the build-vs-buy tradeoffsInside the build brief
- Product & audience
- Design
- Features
- Tech stack
- Data & behavior
- Originality & asset guidance
- Delivery & verification
No account required.Official Chess website
Building your own Chess: useful answers
Is this a ready-to-use Chess alternative?
This page provides a customizable build brief for a local two-player chess board with tested legal moves, game history, and PGN export. It is not a hosted app. Your AI coding agent implements the software; you then need to test, run, and maintain it.
Can I customize the Chess clone prompt?
Yes. Choose Product & audience, Design, Features, Tech stack, or Data & behavior in the editor. Save and copy the complete assembled prompt, or download it as Markdown. Edits are saved in this browser.
What does the starting version leave out?
Test castling through attacked squares and after rook movement, en passant expiry, underpromotion, a pinned-piece move, checkmate versus stalemate, repetition after reload, and malformed PGN. Confirm board review cannot alter active play. Exclude copied piece sets, AI strength claims, tournament-clock rules, online ratings, and matchmaking.
Original software. Familiar inspiration.
Use your own brand, code, layout, and assets. Clone4.me is independent and is not affiliated with Chess. Read our approach.
Curated by Clone4.me · AI-assisted build briefs · Scope reviewed October 14, 2026
More games to build
Build an original daily word-guessing game with accurate letter feedback and saved progress.
Build a word-grouping puzzle with original sets, limited mistakes, and an authoring validator.
Build a deterministic sliding-number puzzle with correct merges, undo, and resumable runs.
The complete Chess clone prompt
# Build an original game inspired by Chess
You are an experienced game designer and gameplay engineer. Build a working, polished MVP from the brief below. Implement the core journeys end to end; a static mockup is not sufficient. Inspect the current environment, make sensible implementation decisions, and get started. Ask a question only if a missing answer genuinely blocks implementation.
Starting platform: Web. Explicit customized Product & audience and Tech stack requirements take precedence over this starting target.
## Product & audience
Build an original local two-player browser chess app called Boardroom. The main journey is starting a game, playing legal moves on one device, reviewing the move history, and saving or exporting it. Use standard chess rules through a tested rules library and original board/piece assets. The MVP does not require an AI opponent or online matchmaking.
## Design
Use an original high-contrast board with coordinate labels, a clear side-to-move indicator, move list, captured-piece information, and promotion picker. Support click/tap selection and keyboard square navigation in addition to dragging. Show legal destinations and check status accessibly, with board flip and reduced-motion settings.
## Features
1. Rules: delegate legal move generation and validation to a tested chess library such as chess.js. Cover check restrictions, castling rights, en passant, and all promotion choices; never infer legality from piece animation.
2. Game outcomes: distinguish checkmate, stalemate, resignation, draw agreement, and supported repetition/move-count/insufficient-material conditions. Document whether a draw is automatic or claimable in this casual local edition.
3. Play controls: start a new standard game, flip the board, pause/resume interaction, and offer a confirmed restart. Provide analysis-style undo only when explicitly enabled and visibly mark the game as casual.
4. History: maintain algebraic move notation, step through completed-game positions without mutating the live game, and export PGN. Import a bounded valid PGN through the rules library with clear errors.
5. Persistence: save initial position, move sequence, outcome, and settings after every move. Reconstruct the engine by replaying validated moves on reload; preserve history-dependent repetition and castling state.
## Tech stack
Use TypeScript with a browser board component and a maintained tested chess rules library, preserving its license notices. Wrap library state in a small application engine independent of rendering. Persist the starting position and full move sequence, not just the final FEN, because history affects draws. Keep imports bounded and provide a local-save fallback. Omit clocks initially to avoid pretending pause is compatible with competitive timing.
## Data & behavior
Game {id, initialFen, moves, result, resultReason, casualUndoEnabled, paused}; Move {from, to, promotion, san}; ReviewState {ply}; Settings; ExportMetadata. Validate every imported move and only publish a successful reconstructed session after complete validation.
Acceptance checks and scope:
Test castling through attacked squares and after rook movement, en passant expiry, underpromotion, a pinned-piece move, checkmate versus stalemate, repetition after reload, and malformed PGN. Confirm board review cannot alter active play. Exclude copied piece sets, AI strength claims, tournament-clock rules, online ratings, and matchmaking.
## Originality and assets
The named product is a reference for general workflows only. Use an original product name, visual identity, wording, layout, and assets. Do not copy proprietary code, branded logos, distinctive screens, private APIs, paid templates, or protected media. Use original or appropriately licensed sample data and assets. Build from this brief rather than scraping the reference service. Do not imply affiliation with the referenced company.
## Implementation quality
- Make every visible control work, with clear loading, success, empty, validation, and failure states. Remove controls for unimplemented features.
- Support the target platform and responsive or resizable layouts where appropriate. Use platform-appropriate accessibility semantics, labels, keyboard operation, visible focus, sufficient contrast, and reduced-motion preferences. Provide alternatives for drag-only interactions.
- Validate inputs at the relevant boundary. Treat imported or user-generated content as untrusted; render it safely. Confirm destructive actions or offer undo.
- Keep state changes reliable across navigation and reloads. Never silently lose edits. Handle persistence and network errors with an actionable message.
- Keep the scope realistic. Prioritize the complete primary journey. If a custom Features section differs from the baseline, update the data model, design, and acceptance checks to match it; explicit custom requirements take precedence over baseline assumptions.
- Provide realistic original sample content and a useful empty state. Keep sample data clearly separate from user-created data.
## Delivery and verification
1. Inspect the repository and outline the implementation in a few sentences.
2. Implement the app and connect its actual data flow. Continue until the primary journey works.
3. Run appropriate checks and test the acceptance cases above on the target platform. Verify responsive layouts and keyboard navigation when browser tools are available. For native projects, build with the available SDK and test an emulator or device when possible; report any missing native verification honestly. For games, verify the rules and gameplay loop, not only the menus.
4. Fix observed failures, then provide the runnable result, setup/run instructions, a brief explanation of what is implemented, and any specific configuration or verification limits.
This is a focused MVP. Do not add billing, AI services, or unrelated features unless explicitly requested in the brief. Start building now.
Change just what matters. Customize a section and keep the rest of the brief included.