Project

General

Profile

« Previous | Next » 

Revision 73515bf8

Added by Leszek Koltunski 8 months ago

improve scrambling of the Tins and Lattice Cubes.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyTins.java
59 59
    {
60 60
    if( mEdges==null )
61 61
      {
62
      setUpRotatable();
63
      mEdges = ScrambleEdgeGenerator.getScrambleEdgesSingle(mBasicAngle, mRotatable);
62
      mEdges = new int[][]
63
        {
64
          { 0,16,1,16,2,8,3,8,  4,1,5,1,6,9,7,9,  8,15,9,15,10,7,11,7,  12,2,13,2,14,10,15,10,  16,14,17,14,18,6,19,6,  20,3,21,3,22,11,23,11,  24,13,25,13,26,5,27,5,  28,4,29,4,30,12,31,12 },  // 0
65

  
66
          {                                                             12,2,13,2,14,10,15,10,                          20,3,21,3,22,11,23,11,  24,13,25,13,26,5,27,5,                        },  // 1
67
          {                     4,1,5,1,6,9,7,9,                                                16,14,17,14,18,6,19,6,                                                  28,4,29,4,30,12,31,12 },  // 2
68
          {                     4,1,5,1,6,9,7,9,  8,15,9,15,10,7,11,7,                                                                                                  28,4,29,4,30,12,31,12 },  // 3
69
          { 0,16,1,16,2,8,3,8,                                          12,2,13,2,14,10,15,10,                          20,3,21,3,22,11,23,11,                                                },  // 4
70
          {                     4,1,5,1,6,9,7,9,  8,15,9,15,10,7,11,7,                          16,14,17,14,18,6,19,6,                                                                        },  // 5
71
          { 0,16,1,16,2,8,3,8,                                          12,2,13,2,14,10,15,10,                                                  24,13,25,13,26,5,27,5,                        },  // 6
72
          { 0,16,1,16,2,8,3,8,                                                                                          20,3,21,3,22,11,23,11,  24,13,25,13,26,5,27,5,                        },  // 7
73
          {                                       8,15,9,15,10,7,11,7,                          16,14,17,14,18,6,19,6,                                                  28,4,29,4,30,12,31,12 },  // 8
74

  
75
          {                                                             12,2,13,2,                                      20,3,21,3,                          26,5,27,5,                        },  // 9
76
          {                     4,1,5,1,                                                                    18,6,19,6,                                                  28,4,29,4,            },  // 10
77
          {                     4,1,5,1,                    10,7,11,7,                                                                                                  28,4,29,4,            },  // 11
78
          {           2,8,3,8,                                          12,2,13,2,                                      20,3,21,3,                                                            },  // 12
79
          {                     4,1,5,1,                    10,7,11,7,                                      18,6,19,6,                                                                        },  // 13
80
          {           2,8,3,8,                                          12,2,13,2,                                                                          26,5,27,5,                        },  // 14
81
          {           2,8,3,8,                                                                                          20,3,21,3,                          26,5,27,5,                        },  // 15
82
          {                                                 10,7,11,7,                                      18,6,19,6,                                                  28,4,29,4,            },  // 16
83
        };
64 84
      }
65 85

  
66 86
    return mEdges;

Also available in: Unified diff