1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2023 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.solvers.pduo;
|
11
|
|
12
|
import android.content.res.Resources;
|
13
|
|
14
|
import org.distorted.objectlib.main.TwistyObject;
|
15
|
import org.distorted.solvers.SolverTablebase;
|
16
|
|
17
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
18
|
|
19
|
public class SolverPyraminxDuo extends SolverTablebase
|
20
|
{
|
21
|
private static final int ERROR_CORNER_GYB_MISSING = 0;
|
22
|
private static final int ERROR_CORNER_GYR_MISSING = 1;
|
23
|
private static final int ERROR_CORNER_GBR_MISSING = 2;
|
24
|
private static final int ERROR_CORNER_YBR_MISSING = 3;
|
25
|
|
26
|
private static final int ERROR_CENTER_G_MISSING = 4;
|
27
|
private static final int ERROR_CENTER_Y_MISSING = 5;
|
28
|
private static final int ERROR_CENTER_B_MISSING = 6;
|
29
|
private static final int ERROR_CENTER_R_MISSING = 7;
|
30
|
|
31
|
private int mErrorID;
|
32
|
|
33
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
34
|
|
35
|
public SolverPyraminxDuo(Resources res, TwistyObject object)
|
36
|
{
|
37
|
super(res,object);
|
38
|
}
|
39
|
|
40
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
41
|
|
42
|
public String constructError(Resources res)
|
43
|
{
|
44
|
return null;
|
45
|
}
|
46
|
|
47
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
48
|
|
49
|
public int[] prepareQuats(TwistyObject object)
|
50
|
{
|
51
|
int c0f0 = object.getCubitFaceStickerIndex(0,0);
|
52
|
int c0f1 = object.getCubitFaceStickerIndex(0,1);
|
53
|
int c0f2 = object.getCubitFaceStickerIndex(0,2);
|
54
|
|
55
|
int c1f0 = object.getCubitFaceStickerIndex(1,0);
|
56
|
int c1f1 = object.getCubitFaceStickerIndex(1,1);
|
57
|
int c1f2 = object.getCubitFaceStickerIndex(1,2);
|
58
|
|
59
|
int c2f0 = object.getCubitFaceStickerIndex(2,0);
|
60
|
int c2f1 = object.getCubitFaceStickerIndex(2,1);
|
61
|
int c2f2 = object.getCubitFaceStickerIndex(2,2);
|
62
|
|
63
|
int c3f0 = object.getCubitFaceStickerIndex(3,0);
|
64
|
int c3f1 = object.getCubitFaceStickerIndex(3,1);
|
65
|
int c3f2 = object.getCubitFaceStickerIndex(3,2);
|
66
|
|
67
|
int c4f0 = object.getCubitFaceStickerIndex(4,0);
|
68
|
int c5f0 = object.getCubitFaceStickerIndex(5,0);
|
69
|
int c6f0 = object.getCubitFaceStickerIndex(6,0);
|
70
|
int c7f0 = object.getCubitFaceStickerIndex(7,0);
|
71
|
|
72
|
android.util.Log.e("D", "tip 0: "+c0f0+" "+c0f1+" "+c0f2);
|
73
|
android.util.Log.e("D", "tip 1: "+c1f0+" "+c1f1+" "+c1f2);
|
74
|
android.util.Log.e("D", "tip 2: "+c2f0+" "+c2f1+" "+c2f2);
|
75
|
android.util.Log.e("D", "tip 3: "+c3f0+" "+c3f1+" "+c3f2);
|
76
|
|
77
|
android.util.Log.e("D", "center 0: "+c4f0);
|
78
|
android.util.Log.e("D", "center 1: "+c5f0);
|
79
|
android.util.Log.e("D", "center 2: "+c6f0);
|
80
|
android.util.Log.e("D", "center 3: "+c7f0);
|
81
|
|
82
|
return new int[] {0,0,0,0,0,0};
|
83
|
}
|
84
|
|
85
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
86
|
|
87
|
public String solution(int[] quats, Resources res)
|
88
|
{
|
89
|
return "";
|
90
|
}
|
91
|
}
|
92
|
|