Project

General

Profile

« Previous | Next » 

Revision 74cc695a

Added by Leszek Koltunski about 1 year ago

Pyraminx solver: tablebase working now (tipless, tips to be added in the SolverPyraminx class)

View differences:

src/main/java/org/distorted/objectlib/tablebases/TablebasesPyraminx.java
15 15
import android.content.res.Resources;
16 16

  
17 17
import org.distorted.library.type.Static3D;
18
import org.distorted.objectlib.R;
18 19
import org.distorted.objectlib.objects.TwistyPyraminx;
19 20

  
20 21
///////////////////////////////////////////////////////////////////////////////////////////////////
......
42 43

  
43 44
  public TablebasesPyraminx(Resources res)
44 45
    {
45
    super(res,org.distorted.objectlib.R.raw.pduo_2_tablebase);
46
    super(res, R.raw.pyra_3_tablebase);
46 47
    }
47 48

  
48 49
///////////////////////////////////////////////////////////////////////////////////////////////////
......
71 72
             {-0.5f, SQ2/4, 0.0f},
72 73
             { 0.5f, SQ2/4, 0.0f},
73 74

  
75
             { 0.0f,-SQ2/2, 0.0f},   // index=0 has the quats already set up so that
76
             { 0.0f,-SQ2/2, 0.0f},   // all the edges fall into right spots, so here
77
             { 0.0f,-SQ2/2, 0.0f},   // they need to be all in one place
74 78
             { 0.0f,-SQ2/2, 0.0f},
75 79
             { 0.0f,-SQ2/2, 0.0f},
76 80
             { 0.0f,-SQ2/2, 0.0f},
77
             { 0.0f,-SQ2/2, 0.0f},
78
             { 0.0f,-SQ2/2, 0.0f},
79
             { 0.0f,-SQ2/2, 0.0f},
80

  
81
             /*
82
             { 0.5f,  0.0f,-0.5f},
83
             { 0.5f,  0.0f, 0.5f},
84
             {-0.5f,  0.0f,-0.5f},
85
             {-0.5f,  0.0f, 0.5f},
86
             { 0.0f, SQ2/2, 0.0f},
87
              */
88 81
         };
89 82
    }
90 83

  

Also available in: Unified diff