✨Rubik-Cube✨
https://dev-tanay.github.io/Rubik-Cube/
This is a simple and elegant game where you can play Rubik's Cube from your own web browser.
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
Follow the steps below to install and set up the Rubik-Cube project on your local machine.
git
installed on your system. If not, download and install it from here.🔗 Clone the Repository Open your terminal (or Command Prompt on Windows) and run the following command to clone the repository:
git clone https://github.com/Dev-tanay/Rubik-Cube.git
📂 Navigate to the Cloned Repository Change directory to the cloned repository:
cd Rubik-Cube
🌐 Open the Index.html File
Locate the index.html
file in the repository and open it in your web browser. You can do this by either:
index.html
file in your file manager. This will open the file in your default web browser.Running a simple HTTP server (if you prefer):
Using Python (if installed):
python -m http.server
Open your web browser and go to http://localhost:8000
.
Using Node.js (if installed) with http-server package:
npx http-server
Open your web browser and go to the provided local server URL (usually http://127.0.0.1:8080
or similar).
🎮 Play the Game
Once the index.html
file is opened in the web browser, the game screen will be displayed. You can now start playing the Rubik-Cube game.
Enjoy your Rubik-Cube game! 🕹️✨
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.
You can also use keyboard shortcuts to rotate 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!
This project is licensed under the MIT License - see the LICENSE file for details.