✨Rubik-Cube✨
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:
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:
This can be done by dragging the cursor over the segment you want to rotate or letters(r l u b d f) for the move(Hold Shift for prime/anticlockwise moves)
This can be done by dragging the cursor in an arrow or arrowkeys (up,down,right,left) around the cube.
git clone https://github.com/Dev-tanay/Rubik-Cube.git
cd Rubik-Cube
index.html
file in a web browserThere, you've opened the game screen!
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.