Skip to content

derek800109/Rubik-s-Cude

Repository files navigation

The sample of output

12_0/0_1/5_2/3_3/4_4
222000022111111114525525125333333254044044300340355544

The meaning of this output is that:

  1. (the way of rotation)_(th of the step)/
  2. Every numbers have their correspondign color
    enum NAMEOFCOLOR {RED = 0, YELLOW = 1, GREEN = 2, WHITE = 3, BLUE = 4, ORANGE = 5, TRANSPARENT = 6};
  3. Every nine digit represent a face(A), and the sort of face is (B), which is mean from left up to right down

(A)The sort of faces

enum NAMEOFFACE {FRONT = 0, TOP = 1, RIGHT = 2, BUTTOM = 3, LEFT = 4, REAR = 5};

(B)The map of the cube:

The order of cells on each face
[U: upside, R: rightside, D: downside, L: leftside]
    01(U)2        
    3(L)45(R)        
    67(D)8        
               
    87(D)6        
    5(R)43(L)        
    21(U)0        
               
63(L)0 01(U)2 25(R)8 87(D)6
7(D)41(U) 3(L)45(R) 1(U)47(D) 5(R)43(L)
85(R)2 67(D)8 03(L)6 21(U)0
               
    01(U)2        
    3(L)45(R)        
    67(D)8        
The order of each face
RearFace
UpFace
LeftFaceFrontFaceRightFaceRearFace
DownFace

The way of rotation:

enum ROTATION3D { TOPCW = 0, TOPCCW = 1, BUTTOMCW = 2, BUTTOMCCW = 3, LEFTCW = 4, LEFTCCW = 5, RIGHTCW = 6, RIGHTCCW = 7, FRONTCW = 8, FRONTCCW = 9, REARCW = 10, REARCCW = 11, ORIGIN = 12 };

About

Optimized brut force solution by remapping equivalent faces to existing solution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages