Skip to content

tsankuanglee/cuber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TK's Cuber

Expert mode: Screenshot2

Beginner mode: Screenshot3

Video demo.

How to run?

  • You can play the online version in your browser.
  • Open index.html with your browser.

How to play?

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.

What is this?

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:

The new set of control keys are more suitable for my needs.

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.

Keyboard Chart

Rotate 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 ,

Rotate The Whole Cube

FRONT to
UP t or y
DOWN b or n
LEFT RIGHT
UP to g h
LEFT RIGHT
FRONT to f j

Shuffle, Undo, Redo, etc.

  • ? (SHIFT/): toggle help text
  • SHIFTF: shuFfles the cube
  • SHIFTU: Undo
  • SHIFTR: Redo
  • SHIFTP: toggle shortcut Prompts
  • SHIFTT: toggle Timer

All tiles are visiable all at once

This saves a lot of rotating turns.

Credit

About

TK's Cuber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published