Skip to main content
Prompts Feature-Rich HTML5 Chess Game Developer

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