Master Chess - Free Online Chess Game

Seele01-Flash
By
Master Chess is a classic strategy board game that brings the timeless appeal of chess to your browser. Play against AI or challenge friends in this beautifully crafted chess experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Master Chess 3D**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-fidelity "Virtual Tabletop" aesthetic. The look should be realistic but optimized, featuring a classic wooden chessboard (dark mahogany and light oak tiles) with a polished finish. * **Chess Pieces:** Use `THREE.LatheGeometry` or composite primitives (Cylinders, Spheres, Cones) to procedurally generate recognizable chess pieces (Pawn, Rook, Knight, Bishop, Queen, King). * **Materials:** White pieces should have a cream/ivory plastic or light wood finish. Black pieces should have a charcoal or obsidian finish. Add `MeshStandardMaterial` with moderate `roughness` (0.4) and `metalness` (0.1) for a slight sheen. * **Lighting:** Use a warm 3-point lighting setup: an Ambient Light for base visibility, a Directional Light (simulating a desk lamp) casting soft shadows, and a Rim Light to separate pieces from the dark background. * **Background:** A dark, neutral radial gradient (dark grey to black) to ensure high contrast with the board. Include a floating 3D Title "MASTER CHESS" in Gold texture above the board. * **Mobile Optimization:** Use low-polygon counts for the procedurally generated pieces. Merge geometries where possible for the board. ### 2. Audio Requirements * **BGM:** A sophisticated, looping "Lounge Jazz" or "Solo Piano" track that plays quietly in the background to aid concentration. * **Sound Effects (SFX):** * **Select:** A subtle "click" when a piece is tapped. * **Move:** A satisfying "wood-on-wood thud" sound when a piece lands. * **Capture:** A sharper, slightly louder "clack" sound. * **Check/Checkmate:** A dramatic piano chord or chime. * **UI:** Soft taps for menu interaction. ### 3. Gameplay Loop * **Core Mechanic:** Standard International Chess rules. The game must handle turn alternation (White -> Black). * **Game Modes:** Implement a simple state switch for **Player vs. Player (Local)** and **Player vs. CPU**. * *Note for CPU:* Implement a basic "Random Move" or simple "Material Value" AI for the opponent if a full Stockfish implementation is too complex for this snippet. * **Logic:** * Validate legal moves for each piece type (e.g., Knights move in 'L', Bishops diagonal). * Implement "Capture" logic: remove the opponent's piece from the scene when occupied. * Detect "Check" state (visual warning). * **Victory Condition:** Checkmate (King has no escape) or Capturing the King (for simplified logic). Display a "White Wins" or "Black Wins" overlay. ### 4. Mobile Controls & Interaction * **Touch System:** Use `Raycaster` mapping to touch coordinates. * **Action 1 (Tap):** Select a piece. The piece should slightly lift up (y-axis tween) and emit a glow to indicate selection. * **Visual Aid:** When a piece is selected, highlight all valid target squares on the board in Green or Blue so the user knows where they can tap next. * **Action 2 (Tap):** Confirm move to the target square. * **Camera:** Fixed Perspective Camera angled at 45-60 degrees. * *Mobile Interaction:* Allow slight camera rotation (OrbitControls) but clamp the `minPolarAngle` and `maxPolarAngle` to prevent the user from looking under the board. * **UI/UX:** * Disable default browser scrolling/zooming (`touch-action: none`). * UI Buttons (Reset, Undo, Menu) must be large (minimum 44x44px hit area) and placed at the bottom or top corners of the screen, away from the board play area. * **Feedback:** Trigger `navigator.vibrate(50)` on mobile devices upon a successful move or capture for haptic feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Master Chess is a premium online chess experience that combines classic gameplay with modern convenience. This sophisticated board game offers the perfect platform for chess enthusiasts to test their strategic thinking and tactical skills. Whether you're a beginner learning the ropes or a seasoned player seeking challenging matches, Master Chess delivers an authentic chess experience right in your browser.

The game features stunning 3D graphics with elegantly designed wooden chess pieces and board, creating an immersive playing environment that rivals physical chess sets. Every piece movement is smooth and responsive, making your strategic decisions feel natural and engaging.

Core Features

Multiple Game Modes

Master Chess offers versatile gameplay options to suit every preference:

  • Single Player Mode : Challenge the intelligent AI opponent with adjustable difficulty levels
  • Two Player Mode : Play against friends locally on the same device
  • Cross-Platform Compatibility : Seamlessly switch between desktop and mobile devices

Advanced Chess Engine

The game incorporates a sophisticated chess engine that provides: - Smart AI Opponents : Multiple difficulty levels from beginner to expert - Legal Move Validation : Automatic checking for valid moves and chess rules - Game State Recognition : Automatic detection of check, checkmate, and stalemate situations - Move Highlighting : Visual assistance showing possible moves for selected pieces

Educational Value

Master Chess serves as an excellent educational tool for players of all skill levels: - Learn fundamental chess strategies and tactics - Develop critical thinking and problem-solving skills - Practice pattern recognition and forward planning - Improve concentration and analytical abilities

Gameplay Mechanics

Master Chess follows traditional chess rules with all standard piece movements and special moves including castling, en passant, and pawn promotion. The intuitive interface makes it easy to select and move pieces, while the clear visual feedback helps prevent mistakes.

Strategic Depth

The game offers unlimited strategic possibilities: - Plan multi-move combinations - Control key squares and diagonals - Develop pieces efficiently in the opening - Execute tactical motifs like pins, forks, and skewers - Master endgame techniques

Operation Guide

Basic Controls

  • Select Piece : Tap on any of your pieces to see available moves
  • Move Piece : Tap on a highlighted square to move your selected piece
  • Desktop : Use left mouse button to click and move pieces
  • Mobile : Simply tap to select and move pieces

Game Setup

  1. Choose your preferred game mode (vs AI or vs Player)
  2. Select difficulty level when playing against computer
  3. White pieces always move first
  4. Plan your strategy and make your opening move

Special Moves

  • Castling : Click on your king, then on the destination square
  • En Passant : Available when opponent's pawn moves two squares
  • Pawn Promotion : Choose your preferred piece when pawn reaches the end

Why Play Master Chess

Perfect for All Skill Levels

Whether you're completely new to chess or an experienced player, Master Chess adapts to your skill level. The adjustable AI difficulty ensures you'll always find an appropriate challenge that helps you improve without becoming frustrated.

Convenient Online Access

No downloads, installations, or registrations required. Simply open your browser and start playing immediately. Your games are automatically saved locally, so you can continue where you left off.

Educational Benefits

Chess is renowned for developing critical thinking, pattern recognition, and strategic planning skills. Regular play can improve concentration, memory, and analytical abilities - benefits that extend far beyond the game itself.

Social Gaming Experience

The two-player mode makes Master Chess perfect for family game nights, friendly competitions, or educational settings. Share the same screen and enjoy face-to-face chess battles.

Premium Quality Graphics

The beautifully rendered 3D chess set creates an authentic playing experience that's both visually appealing and functionally excellent. The clear piece designs and intuitive interface ensure you can focus on strategy rather than navigation.

Frequently Asked Questions (FAQ)