Skip to content

jhoanborges/rubiks-cube

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A three.js visualisation of solving a Rubik's cube.

Status

Currently, I have not implemented the solving part. Instead, I am cheating by using a reversed list of opposite moves as the solution.

Query Params

The following query params can be added:

Query Param Description Values Default
cubeSize The size of the cube 2-5 3
animationSpeed How quickly to animate the moves 100-5000 ms 750 ms
autoRotate Auto rotate the cube as it is solving bool true
autoRotateSpeed Speed of auto rotatation (if enabled) 0-10000 ms 1000 ms
axesEnabled Draw the X, Y and Z axes bool false

Examples

TODO

  • Improve the look of the cube pieces
  • Add a slide-out panel to configure the size, speed etc
  • Implement an algorithm to solve the cube properly

Links

About

A three.js visualisation of solving a Rubik's cube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.4%
  • HTML 2.6%