developer coding user risk: low
Feature-Rich HTML5 Chess Game Developer
Develop a feature-rich chess game using HTML5, CSS3, and JavaScript with realistic chessboard, piece rendering, standard rules, move validation, highlighting, animations, game cloc…
PROMPT
Develop a feature-rich chess game using HTML5, CSS3, and JavaScript. Create a realistic chessboard with proper piece rendering. Implement standard chess rules with move validation. Add move highlighting and piece movement animation. Include game clock with multiple time control options. Implement notation recording with PGN export. Add game analysis with move evaluation. Include AI opponent with adjustable difficulty levels. Support online play with WebRTC or WebSocket. Add opening book and common patterns recognition. Implement tournament mode with brackets and scoring.
EXPECTED OUTPUT
- Format
- code
SUCCESS CRITERIA
- Create a realistic chessboard with proper piece rendering.
- Implement standard chess rules with move validation.
- Add move highlighting and piece movement animation.
- Include game clock with multiple time control options.
- Implement notation recording with PGN export.
- Add game analysis with move evaluation.
- Include AI opponent with adjustable difficulty levels.
- Support online play with WebRTC or WebSocket.
- Add opening book and common patterns recognition.
- Implement tournament mode with brackets and scoring.
FAILURE MODES
- Partial implementation omitting complex features like AI or online play.
- Incorrect enforcement of chess rules or move validation.
- Lack of smooth animations or realistic rendering.
- Failure to integrate features like PGN export or tournament scoring.
CAVEATS
- Missing context
-
- Allowed external libraries or frameworks (e.g., chess.js, chessground).
- Responsiveness requirements (mobile/desktop).
- Piece assets source (SVG, Unicode, images).
- Output structure (single file, separate files, repo layout).
- Performance or testing criteria.
- Ambiguities
-
- Unclear how 'game analysis with move evaluation' should be implemented (e.g., integration with engine like Stockfish).
- 'AI opponent with adjustable difficulty levels' lacks details on number of levels or algorithms (minimax depth?).
- 'Support online play with WebRTC or WebSocket' does not specify which protocol or details like matchmaking/lobby.
- 'Tournament mode with brackets and scoring' lacks details on player count, bracket types, or UI requirements.
QUALITY
- OVERALL
- 0.65
- CLARITY
- 0.90
- SPECIFICITY
- 0.75
- REUSABILITY
- 0.20
- COMPLETENESS
- 0.60
IMPROVEMENT SUGGESTIONS
- Specify allowed libraries: 'You may use chess.js for rules and chessboard.js for board rendering.'
- Add phased development: 'First implement core board and rules (MVP), then add features incrementally.'
- Clarify AI: 'AI with 4 difficulty levels using minimax with alpha-beta pruning, depths 1-4.'
- Define output: 'Provide a complete, self-contained HTML file or GitHub repo structure.'
- Require responsiveness: 'Ensure the game is fully responsive for mobile and desktop.'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Context7 Library Documentation Expert developer coding
- Structured Python Production Code Generator developer coding
- Angular Standalone Directive Generator developer coding
- Pytest Unit Test Suite Generator developer coding
- Unity Architecture Specialist developer coding
- Web Typography CSS Generator developer coding
- VSCode CodeTour File Expert developer coding
- Senior Python Code Reviewer developer coding
- Structured Cross-Language Code Translator developer coding
- Multi-DB SQL Query Optimizer and Builder developer coding
- Base R Programming Reference Guide developer coding
- Flutter Map SDK Layer Bug Fixer developer coding
- Expert Mobile App Builder for iOS Android developer coding
- Scalable Backend Architect Expert developer coding
- Comprehensive TypeScript Codebase Reviewer developer coding
- Code Improvement and Refactoring Suggester developer coding
- Vercel SPA Blank Screen Diagnoser developer coding
- CLAUDE.md File Generator for AI Coders developer coding
- App Store Screenshots Gallery Generator developer coding
- Spring Boot SOLID Architect Specialist developer coding
- React SaaS Metrics Dashboard Generator developer coding
- Software Optimization Auditor developer coding
- Senior Frontend Task Checklist Architect developer coding
- POSIX Shell Script Developer with Checklists developer coding
- Astro v6 Strict Architecture Rules developer coding