I consider myself an avid speed cuber. Not world class, but fast enough and not too obsessed with it. That being said all the sites I’ve seen in the past with references to algorithms all seem to use really clunky client side Java or Flash plugins to handle the demonstration of moves. I wanted to create a simple to implement jQuery plugin that utilizes the browser’s built in features to do the same thing. The result is my jquery.cube.js plugin. As seen below.
The plugin code is available here: https://github.com/godlikemouse/jquery.cube.js
This plugin utilizes standard cube notation, both modern and old to execute moves. For example, the moves executed above are utilizing the following notation:
x (R’ U R’) D2 (R U’ R’) D2 (R U R’) D2 (R U’ R’) D2 (R U R’) D2 (R U’ R’) D2 R2 x’
This algorithm is being passed to the cube plugin by way of the execute() method.
This plugin currently supports a number of configuration options that can be passed at instantiation time including, cube face colors, animation delay time with more to come shortly.
For more information on this plugin or to view the source please visit: https://github.com/godlikemouse/jquery.cube.js