A Rubik’s Cube game built in Unity using C#, featuring a fully interactive 3D cube with realistic rotations, scramble logic, and solve-state validation. Designed as both a puzzle game and a foundation for experimenting with cube algorithms and solvers.
UnityC#3D Game DevelopmentAlgorithm DesignOpen Source
Features
Procedurally generated 3D Rubik’s Cube built entirely via code (no premade 3D models)
Fully interactive cube with smooth, realistic face rotations
Built in Unity using C#, with accurate cubie-based logic and full state tracking
Scramble system with validation to prevent impossible cube configurations
Solve-state detection that reliably identifies completed faces
Integrated audio manager handling background music and responsive sound effects
Smooth, customizable orbit camera with intuitive controls for rotating and inspecting the cube
Designed as a foundation for future solving algorithms and auto-solver integration
Gallery
The initial prototype showing the interactive 3D Rubik's Cube in Unity.