This is a simple and elegant game where you can play Rubik's Cube from your own web browser.
Each of the six faces of the Rubik's cube is in one of the six colors - red, green, yellow, blue, white, and orange.
The visible part of the cube is divided into 26 pieces:
- 6 central pieces (one colored side)
- 12 edge pieces (two colored sides)
- 8 corner pieces (three colored sides)
The 26 pieces are "scrambled" to have different colors on each face.
https://dev-tanay.github.io/Rubik-Cube/The objective of this game is to get each face of the cube to have a single color.
This can be done in two ways:
- Twisting the segments
- Changing the view of the cube
This can be done by dragging the cursor over the segment you want to rotate.
This can be done by dragging the cursor in an arrow around the cube.
- Clone the repository
- Navigate to the cloned repository
- Open the
index.html
file in a web browser
git clone https://github.com/Dev-tanay/Rubik-Cube.git
cd Rubik-Cube
There, you've opened the game screen!
- Home
- Game start
- Preferences
- Cube size
- Flip Type
- Scramble
- Camera Angle
- Color Scheme
- Theme
- Stats
- Total Number of Solves
- Best time
- Average of 5, 12, 25
You'll see two icons, each on the two bottom corners of the screen. They're (1) Leaderboard and (2) Preferences.
You can start the game by double-clicking on the text "DOUBLE TAP TO START"
Once you start the game, a timer will show above the cube.
Now you'll see only one icon, that is Back.
On clicking Preferences from Home screen, you'll be led to the settings page.
The options you can change here are:
Also, there are two new icons in the bottom corners - (3) Back and (4) Theme.
Here, you can adjust the hue, saturation, and lightness of the screen to your liking.
The new icons in the bottom corners are - (5) Back and (6) Reset.
These display the statistics of your Rubik's Cube game. The stats include:
This project is licensed under the MIT License - see the LICENSE file for details.