A fully interactive 3D Rubik's Cube simulator built with JavaFX.
Rotate, scramble, and reset the cube with smooth animations and a modern UI.
- Java 11 or higher
- JavaFX SDK (OpenJFX)
- 3D Rubik's Cube: Rotate any face in both directions.
- Scramble: Randomizes the cube with visible, animated moves.
- Reset: Instantly returns the cube to the solved state.
- Camera Controls: Zoom in/out and reset the view.
- Modern UI: Clean, responsive buttons with icons and hover effects.
Rubix/
├── RubiksCubeMain.java
├── RubiksCube3DApp.java
├── RubiksCubeMain.java
├── RubiksSide.java
├── Util/
│ ├── UIUtil.java
│ └── InteractionUtil.java
│ └── ColorUtil.java
│ └── LightingUtil.java
-
Clone the repository:
git clone https://github.com/meshhi13/Rubiks-Cube.git cd Rubiks -
Open in your IDE (e.g., VS Code or IntelliJ).
-
Run the main class (usually
RubiksCubeMain.javaor similar). -
Enjoy!
| Button/Icon | Action |
|---|---|
| 🎲 | Scramble the cube |
| 🔄 | Reset the cube |
| ⤾ | Reset camera/view |
| + / - | Zoom in/out |
| F, R, U... | Rotate faces |
| F', R', U' | Rotate faces (reverse) |
Happy cubing!
