Ligang Wang (gravatar)

Rubik’s Cube

Recently I wrote my first version of XNA rubik’s cube application in C# to explore 3D cubie configuration. You can use mouse’s left button to select the Cube’s face and drag toward the direction you want to rotate faces.

David Singmaster developed notation of six faces as right (r), left (l), up (u), down (d), front (f) and back (b).
You can directly type following commands in the bottown-left textbox to rotate the rubik's cube.
L, R, U, D, F and B denotes clockwise twists of the corresponding faces.
L', R', U', D', F' and B' denotes counterclockwise twists of the corresponding faces.
LM, RM, UM, DM, FM and BM denotes clockwise twists of the corresponding middle layer.
LM', RM', UM', DM', FM' and BM' denotes counterclockwise twists of the corresponding middle layer.
You may know there are some obvious equivalent groups of twists. LM/RM'/L'R, RM/LM'/R'L ....



Silverlight version:

XNA version:

download source code from here

0 Comments

Your Information
Mrs. Gravatar (gravatar)

<-- It's a gravatar

your comment