Chess Grandmaster

Seele01-Flash
By
Chess Grandmaster is a comprehensive online chess game featuring classic matches against AI and over 1,000 chess puzzles. Perfect for players of all skill levels seeking to master the royal game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Chess Grandmaster**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A polished, modern aesthetic that mirrors the provided logo's "Teal and White" color palette. The game should look like a premium, clean vector illustration brought to life in 3D. * **The Board:** Create a 3D chess board with a glossy finish. The squares should alternate between a deep teal (dark squares) and a creamy off-white (light squares). The board should have a subtle reflection to simulate polished marble or high-quality plastic. * **The Pieces:** Use simplified, low-poly interpretations of the classic Staunton chess set. * **Player Color:** Cream/White. * **Opponent Color:** Dark Teal or Charcoal Grey. * *Performance Note:* Use `THREE.InstancedMesh` for the pawns and other repeated pieces to optimize rendering performance on mobile devices. * **Background:** A 3D environment featuring a subtle "Green Brick Wall" texture (referencing the logo) in the distance, slightly out of focus (depth of field effect) to keep attention on the board. The lighting should be soft, ambient studio lighting with a single directional light casting soft shadows to ground the pieces. * **Particles:** Subtle "dust motes" floating in the air for atmosphere. When a piece is captured, generate a small, non-intrusive particle explosion (teal or white sparks). ### 2. Audio Requirements * **BGM:** A sophisticated, relaxing background track. Think "Coffee Shop Jazz" or "Light Classical Piano" (e.g., Satie or Debussy style). It should loop seamlessly and not be distracting. * **Sound Effects (SFX):** * **Selection:** A soft "click" or high-frequency "tink" when a piece is touched. * **Movement:** A satisfying, heavy "wooden thud" or "felt slide" sound when a piece is placed. * **Capture:** A slightly more aggressive "clack" sound. * **Check/Checkmate:** A dramatic musical sting or a rising chime. * **UI:** Soft pops for button presses. ### 3. Gameplay Loop * **Game Modes:** 1. **Classic Mode:** Player vs. AI. The AI should have a selectable difficulty (Easy/Medium/Hard) which adjusts the look-ahead depth of the move calculation. 2. **Puzzle Mode:** Present a pre-set board state (e.g., "Mate in 2") where the player must solve the problem. (For the code generation, simulate one or two hard-coded puzzle setups). * **Rules:** Standard International Chess Rules (Movement, Capturing, Castling, En Passant, Promotion). * **Win Condition:** Checkmate the opponent's King. * **Loss Condition:** Being Checkmated or Resigning. * **Feedback system:** If the player tries an illegal move, the piece should shake briefly and snap back to its original position. Valid moves should be highlighted on the board grid when a piece is selected. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Portrait Mode** is preferred for one-handed play. The board should be centered in the upper 2/3rds of the screen, with UI controls at the bottom. * **Camera:** Fixed isometric view (approx 45 degrees), looking down at the board from the Player's side. No manual camera rotation is needed to prevent user confusion. * **Touch Input:** * **Selection:** Tap a piece to select it. The piece should lift slightly (y-axis animation) to indicate selection. * **Movement:** Tap a target square to move. Avoid "Drag and Drop" as it can be obscuring on small screens; "Tap-to-Select, Tap-to-Move" is more precise. * **UI Layout:** * Large, thumb-friendly buttons (min-height 50px) at the bottom for: "Undo Move", "Hint", "Reset Game", and "Menu". * A turn indicator (e.g., "Your Turn" / "Thinking...") clearly visible near the board. * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate`) when a move is successfully completed or a piece is captured. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Chess Grandmaster

Chess Grandmaster is the ultimate online chess experience that combines traditional gameplay with modern features. This comprehensive chess platform offers both classic matches against sophisticated AI opponents and an extensive collection of over 1,000 chess puzzles designed to challenge and improve your strategic thinking.

Whether you're a beginner learning the basics or an experienced player looking to sharpen your skills, Chess Grandmaster provides the perfect environment to develop your chess mastery. The game's elegant green-themed interface creates a calming atmosphere that helps you focus on strategic gameplay.

Core Features

Dual Game Modes

Chess Grandmaster offers two distinct ways to play:

  • Classic Chess Matches : Face off against intelligent AI opponents with adjustable difficulty levels
  • Chess Puzzle Mode : Solve over 1,000 carefully crafted chess problems to enhance your tactical skills

Customizable Difficulty

The game features multiple difficulty settings, allowing you to: - Start with beginner-friendly AI for learning fundamentals - Progress to intermediate levels as your skills develop - Challenge yourself against grandmaster-level computer opponents - Adjust difficulty anytime to match your current skill level

Extensive Puzzle Collection

With more than 1,000 assorted puzzles, you'll never run out of challenges. These puzzles cover: - Checkmate patterns and combinations - Tactical motifs like pins, forks, and skewers - Endgame scenarios and techniques - Opening principles and middle game strategies

Quick Match Functionality

For players seeking immediate action, the Quick Match mode instantly pairs you with an appropriately skilled AI opponent, perfect for: - Quick practice sessions during breaks - Warming up before tackling difficult puzzles - Testing new strategies and openings

Game Mechanics

Chess Grandmaster follows all standard chess rules and regulations:

Piece Movement

  • Pawns : Move forward one square, capture diagonally, with special first-move and en passant rules
  • Rooks : Move horizontally and vertically any number of squares
  • Bishops : Move diagonally any number of squares
  • Knights : Move in L-shaped patterns (two squares in one direction, one perpendicular)
  • Queen : Combines rook and bishop movements
  • King : Moves one square in any direction, with castling privileges

Victory Conditions

Win by achieving checkmate - placing your opponent's king in a position where it's under attack and cannot escape capture.

Operation Guide

Basic Controls

  • Mouse Click : Select pieces and destination squares
  • Drag and Drop : Move pieces by clicking and dragging to desired positions
  • Menu Navigation : Use mouse to access game options and settings
  • Puzzle Selection : Browse through the extensive puzzle library

Getting Started

  1. Choose between Classic Match or Puzzle Mode
  2. Select your preferred difficulty level
  3. For puzzles, read the objective (usually "White/Black to play and win")
  4. Make moves by clicking on pieces and their destination squares
  5. Use hint systems if available when stuck on puzzles

Strategic Tips

  • Control the center squares early in the game
  • Develop pieces before launching attacks
  • Ensure king safety through castling
  • Practice tactical patterns in puzzle mode
  • Learn from AI moves in classic matches

Why Play Chess Grandmaster

Educational Value

Chess is renowned for developing: - Critical thinking skills : Analyze positions and calculate variations - Pattern recognition : Identify tactical and strategic themes - Problem-solving abilities : Find solutions under pressure - Patience and concentration : Focus on long-term planning

Accessibility Features

  • Completely free : No payment required to access all features
  • Browser-based : No downloads or installations needed
  • Cross-platform : Works on computers, tablets, and smartphones
  • Offline capability : Play even without internet connection
  • Clean interface : Distraction-free gaming environment

Progressive Learning

The game's structure supports gradual improvement: - Start with easier AI opponents and basic puzzles - Gradually increase difficulty as skills develop - Track progress through completed puzzles - Challenge yourself with increasingly complex positions

Mental Exercise

Regular chess play provides excellent brain training, helping maintain cognitive sharpness and strategic thinking abilities throughout life.

Chess Grandmaster represents the perfect blend of traditional chess gameplay and modern digital convenience, making the ancient game of kings accessible to players worldwide.

Frequently Asked Questions (FAQ)