文本功能丰富的国际象棋游戏
文本
功能丰富的国际象棋游戏
用 HTML、CSS 和 JavaScript 实现包含规则校验、棋钟、PGN 记谱、分析与 AI 对手的国际象棋游戏。
Prompt
使用 HTML5、CSS3 和 JavaScript 开发一款功能丰富的国际象棋游戏。创建逼真的棋盘,并正确渲染棋子。实现标准国际象棋规则和走法验证。添加走法高亮和棋子移动动画。加入支持多种时限的棋钟。实现记谱记录并支持导出 PGN。加入走法评估的对局分析功能。加入可调节难度的 AI 对手。支持通过 WebRTC 或 WebSocket 在线对弈。加入开局库和常见棋型识别。实现包含淘汰赛对阵表和计分的锦标赛模式。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.
使用建议
适合生成棋类网页原型,可先实现基础规则,再逐步加入在线对战和锦标赛功能。