Dev-tanay / Rubik-Cube

Rubik Cube
https://dev-tanay.github.io/Rubik-Cube/
MIT License
100 stars 156 forks source link
css gssoc24 html js open-source project rubiks-cube ssoc24

✨Rubik-Cube✨

GitHub issues GitHub forks GitHub stars GitHub license Website status

About the 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.

Link to Game Demo

https://dev-tanay.github.io/Rubik-Cube/

How to Play

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:

  1. Twisting the segments
  2. 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)

  3. Changing the view of the cube
  4. This can be done by dragging the cursor in an arrow or arrowkeys (up,down,right,left) around the cube.

Technology Used

HTML CSS js

Installation

  1. Clone the repository
  2. git clone https://github.com/Dev-tanay/Rubik-Cube.git
  3. Navigate to the cloned repository
  4. cd Rubik-Cube
  5. Open the index.html file in a web browser

There, you've opened the game screen!

Navigating the Game Screen

LICENSE

This project is licensed under the MIT License - see the LICENSE file for details.