Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubik's Cube Game

Rubik's Cube Screenshot This repository contains a 3D Rubik's Cube game built using Three.js. It provides an interactive experience where users can manipulate the cube and solve it just like a physical Rubik's Cube.

Features

  • Undo: Revert the last move to correct mistakes.
  • Reset: Reset the cube to its solved state.
  • Scramble: Randomly shuffle the cube for a new challenge.
  • Drag to Rotate: Click and drag the cube to rotate its faces interactively.

Getting Started

  1. Clone the repository:
git clone https://github.com/ridolud/rd-playground-rubik.git
  1. Navigate to the project directory:
cd rd-playground-rubik
  1. Install dependencies using pnpm:
pnpm install
  1. Start the development server with Vite:
pnpm run dev
  1. Open your browser and navigate to the provided local development URL to view the project.

Technologies Used

  • Three.js for 3D rendering.
  • JavaScript for game logic.

How to Play

  1. Use your mouse to drag and rotate the cube.
  2. Click on a face to rotate it.
  3. Use the provided buttons to undo, reset, or scramble the cube.
  4. Keyboard shortcuts:
    • [Esc]: Restart the game.
    • [F]: Toggle faces helper.
    • [Ctrl + Z]: Undo the last move.
    • [S]: Scramble the cube.

Enjoy solving the Rubik's Cube!

Releases

Packages

Used by

Contributors

Languages