Skip to content

Latest commit

 

History

History
441 lines (342 loc) · 15.5 KB

File metadata and controls

441 lines (342 loc) · 15.5 KB

⚔️ GENIUS 3D CHESS - Battle Chess Game ═══════════════════════════════════════════════════════════════════════════════

Status Platform Python License

A Battle Chess-style game featuring intelligent AI opponents with distinct personalities and skill levels. Play against 8 unique celebrity opponents from Albert Einstein to Garry Kasparov.

🎮 FEATURES ═══════════════════════════════════════════════════════════════════════════════

CORE GAMEPLAY

  • Complete chess implementation with proper piece movements
  • 8x8 board with traditional chess rules
  • Real-time move validation and highlighting
  • Capture mechanics with piece removal
  • Move history and game logging

🤖 AI OPPONENTS

  • 8 unique celebrity opponents:

    • Albert Einstein (Skill 7) - Brilliant strategist
    • Napoleon Bonaparte (Skill 8) - Military genius
    • Bobby Fischer (Skill 9) - Chess legend
    • Garry Kasparov (Skill 10) - Master attacker
    • Magnus Carlsen (Skill 10) - Modern super-GM
    • Cleopatra (Skill 6) - Ancient pharaoh
    • Sherlock Holmes (Skill 8) - Detective mind
    • Marie Curie (Skill 7) - Scientific brilliance
  • Skill-based AI decision making (6-10 difficulty)

  • Personality-driven commentary and quotes

  • Unique playing styles per opponent

  • Intelligent move evaluation

🎨 USER INTERFACE

  • Clean, intuitive chess board (500×500 pixels)
  • Color-coded squares:
    • Yellow: Selected piece
    • Green: Valid moves
    • Beige/Gray: Regular board
  • Side panel with game log
  • Opponent information display
  • Real-time move notation
  • Opponent personality showcased

⚙️ TECHNICAL

  • Built with Python 3.12 + Tkinter
  • No external dependencies (all built-in)
  • Standalone executable (9.89 MB)
  • Cross-platform (Windows 10/11)
  • Responsive, responsive UI
  • Smooth AI thinking simulation

📋 INSTALLATION & USAGE ═══════════════════════════════════════════════════════════════════════════════

INSTALLATION

  1. Download Genius3DChess.exe from the dist/ folder
  2. Place anywhere on your computer (no installation needed)
  3. Double-click to launch
  4. Select opponent and play!

SYSTEM REQUIREMENTS

Minimum:

  • Windows 10 (Build 10240) or Windows 11
  • 64-bit processor
  • 256 MB RAM
  • 50 MB disk space
  • 1024×768 display

Recommended:

  • Windows 11
  • Modern processor
  • 512 MB+ RAM
  • SSD storage
  • 1920×1080+ display

QUICK START

  1. Run Genius3DChess.exe
  2. Click "🎮 PLAY vs AI"
  3. Select an opponent by skill level
  4. Click a WHITE piece to select it (highlighted yellow)
  5. Click a GREEN square to move there
  6. Opponent moves automatically
  7. Try to checkmate the opponent!

CONTROLS

  • Click piece: Select (highlights yellow)
  • Click valid square: Move piece (green squares)
  • Click empty square: Deselect piece
  • "🔄 NEW GAME": Start with different opponent
  • "🏠 MENU": Return to main menu
  • "← BACK": Go back to previous screen

🎯 HOW TO PLAY ═══════════════════════════════════════════════════════════════════════════════

BASIC RULES

You play as WHITE (bottom of board), opponent is BLACK (top).

PIECE MOVEMENTS

Piece Movement Capture
♙ Pawn 1 forward (2 on first) 1 diagonal
♘ Knight L-shape (2+1 squares) Same
♗ Bishop Any diagonal Same
♖ Rook Horizontal/vertical Same
♕ Queen Any direction Same
♔ King 1 in any direction Same

STRATEGY TIPS

  1. Control center - Fight for d4, e4, d5, e5 squares
  2. Develop pieces - Move knights and bishops early
  3. Protect your king - Keep it safe in early game
  4. Don't hang pieces - Never leave piece undefended
  5. Look ahead - Think 2-3 moves ahead
  6. Capture valuable pieces - Rooks (5) > Bishops (3) > Pawns (1)
  7. Create threats - Attack multiple pieces at once

DIFFICULTY PROGRESSION

Start with:

  • Cleopatra (6) - Learn the rules
  • Albert Einstein (7) - Basic strategy
  • Marie Curie (7) - Intermediate play
  • Napoleon Bonaparte (8) - Advanced tactics
  • Sherlock Holmes (8) - Tricky strategy
  • Bobby Fischer (9) - Expert level
  • Garry Kasparov (10) - Master challenge
  • Magnus Carlsen (10) - Ultimate test

📚 DOCUMENTATION ═══════════════════════════════════════════════════════════════════════════════

See included documentation files:

  • CHESS_GAME_GUIDE.md - Complete gameplay guide with tips
  • CHESS_TECHNICAL_SPEC.md - Technical architecture and engine details
  • This file - Quick start and overview

🔥 HIGHLIGHTS ═══════════════════════════════════════════════════════════════════════════════

Complete Chess Engine

  • Full move validation for all piece types
  • Intelligent move generation
  • Capture handling
  • Move history tracking

Smart AI System

  • Skill-based difficulty (6-10)
  • Piece value evaluation
  • Strategic move selection
  • Natural thinking delays

Rich Personalities

  • Each opponent unique
  • Win/loss/move commentary
  • Personality descriptions
  • Immersive gameplay

Beautiful Interface

  • Clean board design
  • Color-coded squares
  • Real-time game log
  • Opponent showcase
  • Responsive controls

Performance

  • Fast move generation (<1ms)
  • Smooth UI rendering
  • Efficient game state
  • No lag or freezing

🎮 GAMEPLAY EXPERIENCE ═══════════════════════════════════════════════════════════════════════════════

GAME FLOW

  1. Main menu appears
  2. Select opponent (8 choices)
  3. Board initializes
  4. You play WHITE (bottom)
  5. Click pieces and squares to move
  6. Opponent responds automatically
  7. Game log shows all moves
  8. Game continues until you win/lose
  9. Return to menu for new game

OPPONENT INTERACTION

Each opponent has:

  • Unique name and personality
  • Skill level display (1-10)
  • Personality description
  • Commentary during play
  • Win/loss quotes
  • Move-by-move reactions

WINNING STRATEGIES

Against lower skill opponents: Play aggressively, attack early Against higher skill opponents: Play defensively, avoid tactics, seek advantages

🏆 ACHIEVEMENTS ═══════════════════════════════════════════════════════════════════════════════

EASY:

  • Beat Cleopatra (Skill 6)
  • Control the center
  • Capture first opponent piece

MEDIUM:

  • Beat Albert Einstein (Skill 7)
  • Beat Marie Curie (Skill 7)
  • Execute a fork (attack 2 pieces)

HARD:

  • Beat all opponents
  • Beat Garry Kasparov (Skill 10)
  • Beat Magnus Carlsen (Skill 10)

EXPERT:

  • Win without losing a queen
  • Capture all 8 opponent pawns
  • Win in under 20 moves

💻 TECHNICAL DETAILS ═══════════════════════════════════════════════════════════════════════════════

ARCHITECTURE

Core Components:

  • PieceType - Enum of piece types
  • Color - Enum for white/black
  • Position - Board coordinates
  • Piece - Individual pieces
  • ChessBoard - Game engine
  • CelebrityOpponent - AI logic
  • GeniusChessGame - UI controller

MOVE SYSTEM

Each piece type has dedicated move generator:

  • Pawn moves: Forward 1-2, capture diagonal
  • Knight moves: L-shaped 8 possible positions
  • Bishop moves: Diagonal rays (4 directions)
  • Rook moves: Orthogonal rays (4 directions)
  • Queen moves: Combination bishop + rook (8 directions)
  • King moves: 1 square in any direction

AI DECISION MAKING

  1. Get all valid moves for opponent
  2. For each move, evaluate piece capture value
  3. Score = capture_value × (skill_factor)
  4. Add randomness for lower skill levels
  5. Select best-scored move
  6. Execute move and update board

BUILD PROCESS

python.exe -m PyInstaller --onefile --windowed --name "Genius3DChess" chess_3d_game.py

Output: dist/Genius3DChess.exe (9.89 MB)

📦 FILE STRUCTURE ═══════════════════════════════════════════════════════════════════════════════

Project Root/
├── chess_3d_game.py               (1,000+ lines source code)
├── CHESS_GAME_GUIDE.md            (Complete gameplay guide)
├── CHESS_TECHNICAL_SPEC.md        (Architecture & technical details)
├── README.md                       (This file)
│
├── dist/
│   ├── Genius3DChess.exe          (Standalone executable, 9.89 MB)
│   └── [dependencies bundled]
│
├── build/
│   ├── Genius3DChess/             (Build artifacts)
│   └── [PyInstaller temp files]
│
└── Genius3DChess.spec             (PyInstaller configuration)

🚀 GETTING STARTED ═══════════════════════════════════════════════════════════════════════════════

FOR NEW PLAYERS:

  1. Read the introduction in the game
  2. Start with instructions (🎮 → 📖 INSTRUCTIONS)
  3. Play against Cleopatra (Skill 6) first
  4. Try different opponents as you improve
  5. Read CHESS_GAME_GUIDE.md for advanced tips

FOR CHESS PLAYERS:

  1. Start with Sherlock Holmes or Bobby Fischer
  2. Challenge yourself with Kasparov/Carlsen
  3. Analyze your losses in game log
  4. Try different strategies each game
  5. Aim to beat skill 10 opponents

FOR DEVELOPERS:

  1. Read CHESS_TECHNICAL_SPEC.md for architecture
  2. Review chess_3d_game.py source code
  3. See comments and docstrings
  4. Understand move generation system
  5. Study AI decision-making algorithm

🎓 LEARNING RESOURCES ═══════════════════════════════════════════════════════════════════════════════

To improve your chess:

  • Chess.com - Play online, learn from AI
  • Lichess.org - Free chess platform, 200+ opponents
  • ChessTempo - Solve tactical puzzles
  • YouTube Channels - ChessBrah, GMHikaru, Antonio Radić
  • Chess Books - "Bobby Fischer Teaches Chess"

Key concepts to learn:

  • Opening principles (control center, develop pieces)
  • Tactical patterns (forks, pins, skewers)
  • Positional play (weak squares, pawn structure)
  • Endgame techniques (king activity, passed pawns)
  • Strategy (material, time, position evaluation)

FAQ ═══════════════════════════════════════════════════════════════════════════════

Q: Why can't I move black pieces? A: You play WHITE (bottom). Black is opponent. Only move white pieces.

Q: What do the green squares mean? A: Green = valid move destination. Click any green square to move selected piece.

Q: Why does the AI take so long? A: It's simulating thinking! This makes the game feel more natural.

Q: Can I undo moves? A: Not in v1.0. Plan carefully before moving!

Q: What happens when I checkmate the opponent? A: Game continues (check detection not in v1.0). Capture all pieces to win.

Q: Is there a way to beat the skill 10 opponents? A: Yes! Focus on solid positional play and avoid tactical mistakes.

Q: Can I play against a human player? A: Not in v1.0. Multiplayer coming in future version.

Q: Why is my move not allowed? A: Piece doesn't move that way. Each piece has specific movement rules.

Q: Can I customize the opponents? A: Not in v1.0. Source code available for modifications.

Q: Does it save my games? A: No, but you can screenshot the game log.

🔮 FUTURE VERSIONS ═══════════════════════════════════════════════════════════════════════════════

v1.1 - Enhancements

  • Checkmate detection
  • Castling (special king move)
  • Pawn promotion
  • Move undo/redo

v2.0 - Major Features

  • 3D board graphics
  • Animated piece movements
  • Online multiplayer
  • Game save/load
  • Opening preparation
  • Advanced AI with look-ahead

v3.0 - Premium

  • Tournament mode
  • Rating system
  • Achievements
  • Statistics
  • Leaderboards
  • Cross-platform (Mac/Linux)

📄 LICENSE ═══════════════════════════════════════════════════════════════════════════════

MIT License - You're free to use, modify, and distribute this game.

See LICENSE file for full details.

👥 ACKNOWLEDGMENTS ═══════════════════════════════════════════════════════════════════════════════

Inspired by:

  • Battle Chess (1988) - Classic animated chess game
  • Chess.com - Modern online chess platform
  • Lichess - Open-source chess platform
  • Tkinter - Simple Python GUI toolkit

Special thanks to:

  • Python community for excellent documentation
  • Tkinter for cross-platform GUI support
  • PyInstaller for executable bundling

🎉 ENJOY THE GAME! ═══════════════════════════════════════════════════════════════════════════════

Download Genius3DChess.exe and start playing today!

Challenge yourself against celebrity opponents, improve your chess skills, and become the ultimate chess master.

May your moves be brilliant and your opponents humbled! ⚔️

═══════════════════════════════════════════════════════════════════════════════

Version: 1.0.0
Release Date: February 2026
Platform: Windows 10/11 (64-bit)
Built With: Python 3.12 + Tkinter
File Size: 9.89 MB

Questions? See CHESS_GAME_GUIDE.md or CHESS_TECHNICAL_SPEC.md