Skip to content

About

An Augmented Reality 3D chess game with the option of play local or online and in 3D or AR perspective

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ 3DchessGameX: A 3D Chess Dimensional Experience 🎲

Pandemic Project Status Made with Platform

💭 The Story Behind the Game

This 3D chess project was born during the 2022 pandemic as a practical exploration of algorithmic concepts and geometry. I challenged myself to create a chess game with complex 3D views and real-time calculations for each piece on the board, turning mathematical theory into interactive gameplay.

📸 A Look at the Game

image image image image

✨ What Makes This Chess Game Special?

3DchessGameX isn't just another chess game - it offers unique features that blend traditional chess with modern technology:

  • 🔄 Complete 360° Board Rotation: View the game from any angle with realistic 3D perspective
  • 👓 Augmented Reality Mode: Play chess in your physical environment using Vuforia technology
  • 🔍 Real-time Movement Calculation: Visual display of all possible moves for any selected piece
  • 💬 In-game Chat System: Communicate with your opponent during online matches
  • ⏱️ Time Pressure Mechanics: Auto-move system when time runs out for added challenge
  • 📋 Move History: Complete log of all game moves for review and analysis
  • 🔄 Dual View System: Synchronized 2D board view alongside the 3D representation

🧩 Technical Achievements

Geometric Movement Calculation

The heart of this project is the real-time calculation system that determines all possible moves for each chess piece. Using spatial geometry and vector mathematics, the game accurately displays valid moves as you play:

  • Pawn's special first-move double advance
  • Knight's L-shaped movement pattern
  • Bishop's diagonal pathfinding with collision detection
  • Rook's horizontal and vertical movement with path blocking
  • Queen's combined movement capabilities
  • King's limited movement with special rules

Multi-perspective Visualization

The game offers a fully rotatable 3D board that maintains accurate piece relationships from any viewing angle:

  • Orbital camera system for smooth rotation
  • Touch and mouse input compatibility
  • Vertical angle constraints to prevent disorienting views
  • Clear visual highlighting of selected pieces and possible moves

AR Integration

The Vuforia framework integration allows players to:

  • Project the chess board onto any flat surface
  • Walk around the board to view from different angles
  • Interact with pieces through touch or gestures
  • Switch seamlessly between standard and AR modes

💻 Core Systems

Player Controller

This system manages player interactions with sophisticated features:

  • Conditional selection logic based on piece ownership
  • Automated random move generation for time-out situations
  • Differentiated movement and attack actions
  • Visual feedback through board highlighting
  • Integration with the console system for player communication

Chess Object Controller

The brain behind each chess piece:

  • Complete implementation of chess movement rules
  • Geometric calculation for valid move determination
  • Collision detection with other pieces
  • Smooth arc animation during piece movement
  • State tracking for special rules (like a pawn's first move)
  • Visual highlighting of valid move options

Chess Board Generator

Creates the complete playing environment:

  • Automated 64-square board generation with precise spacing
  • Standard chess piece distribution at game start
  • Organized data structures for white and black pieces
  • AR compatibility with conditional activation
  • Parameterized dimensions for board customization
  • Systematic naming convention for easy debugging

Camera Controller

Provides the player's window into the chess world:

  • Dual touch and mouse interaction system
  • Object selection via raycasting
  • Orbital rotation around the board
  • Interaction state management
  • Screen-to-world coordinate transformation
  • Vertical angle constraints for optimal viewing

🌱 Learning Outcomes

This project has been an incredible learning journey, helping me develop skills in:

  • Advanced geometric algorithms in interactive environments
  • 3D visualization and camera systems
  • Managing complex game states and rules
  • Integrating augmented reality into traditional games
  • Creating intuitive user interfaces for complex interactions
  • Developing multi-platform input systems (touch and mouse)

🔮 Future Development

While already feature-rich, the project has exciting possibilities on the horizon:

  • Completing the online multiplayer system
  • Advanced AI opponents using chess algorithms
  • Additional AR features with newer technology
  • Chess variants with modified rules
  • Tutorial system for chess beginners
  • Replay and analysis tools for improving play

Created during the 2022 pandemic as a practical exploration of algorithmic concepts and 3D geometry in game development. This project demonstrates how traditional board games can be reimagined through modern technology.

       ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
       ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟
       . . . . . . . .
       . . . . . . . .       3DchessGameX
       . . . . . . . .
       . . . . . . . .       Beyond the Board
       ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙
       ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖

About

An Augmented Reality 3D chess game with the option of play local or online and in 3D or AR perspective

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages