Code Monkey home page Code Monkey logo

rubik-cube's Introduction

✨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:

  • 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.

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.

  3. Changing the view of the cube
  4. This can be done by dragging the cursor in an arrow 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

  • Home
  • 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"

  • Game start
  • Once you start the game, a timer will show above the cube.

    Now you'll see only one icon, that is Back.

  • Preferences
  • On clicking Preferences from Home screen, you'll be led to the settings page.

    The options you can change here are:

    • Cube size
    • Flip Type
    • Scramble
    • Camera Angle
    • Color Scheme

    Also, there are two new icons in the bottom corners - (3) Back and (4) Theme.

  • 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.

  • Stats
  • These display the statistics of your Rubik's Cube game. The stats include:

    • Total Number of Solves
    • Best time
    • Average of 5, 12, 25

LICENSE

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

rubik-cube's People

Contributors

dev-tanay avatar sambit-mondal avatar ritankarsaha avatar nimitagarwal26 avatar officeneerajsaini avatar gaurav-576 avatar jayesh2474 avatar sardulr avatar

Forkers

chikun2004

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.