- You can play the online version in your browser.
- Open index.html with your browser.
You can use mouse, finger swipe, or keyboard to rotate any slice of the cube. See the shortcuts on the upper-right corner of the screen.
Beginners may find on-screen key prmopts helpful. Press capital P to show that.
I enjoy Ryan Heise's Rubik's Cube Simulator a lot, but I needed to make a few modification, and I'd like a more portable version to share with friends. I like Java myself, but non-techies around me are having trouble installing it. Therefore, I decided to look for a javascript version to improve.
This is a minimal hack to the upstream source, as a quick and dirty solution for me and my fellow cubers. I didn't bother to clean up the original code. Perhaps some time in the future.
The original Cuber framework was written by the very talented Stewart Smith. I customized it in the following ways:
I need fast and intuitive keys, so the original SHIFT is gone, and keys are now symmetric between two hands.
Although this keyboard map might look daunting, but the keys are actually quite intuitive once you figure out how the location of the keys map to the location of the cube slices.
Rotate Up, Equator, Down row from Front face to LEFT/Right (notice they are symmetric on the standard QWERTY keyboard):
FRONT to LEFT | FRONT to RIGHT | |
---|---|---|
UP | q | p |
EQUATOR | a | ; |
DOWN | z | / |
Rotate Back, Standing, Front row from UP to LEFT/RIGHT:
UP to LEFT | UP to RIGHT | |
---|---|---|
BACK | w | o |
STANDING | s | l |
FRONT | x | . |
Rotate Left, Middle, Right column from FRONT to UP/DOWN (for symmetry, R and U do the same thing, so do V and N).
LEFT | MIDDLE | RIGHT | |
---|---|---|---|
FRONT to UP | e | r or u | i |
FRONT to DOWN | c | v or m | , |
FRONT to | |
---|---|
UP | t or y |
DOWN | b or n |
LEFT | RIGHT | |
---|---|---|
UP to | g | h |
LEFT | RIGHT | |
---|---|---|
FRONT to | f | j |
- ? (SHIFT/): toggle help text
- SHIFTF: shuFfles the cube
- SHIFTU: Undo
- SHIFTR: Redo
- SHIFTP: toggle shortcut Prompts
- SHIFTT: toggle Timer
This saves a lot of rotating turns.
- The original Cuber framework was written by the very talented Stewart Smith.
- Timer is based on Billy Brown's work.