Revision 1968b93a
Added by Leszek Koltunski 4 days ago
src/main/java/org/distorted/phasedsolver/SolverActivity.java | ||
---|---|---|
183 | 183 |
|
184 | 184 |
int[][] moves = so.getMoveTable(); |
185 | 185 |
|
186 |
int[][] params = { {12,13,16,17},{0,1,2,3} }; |
|
187 |
int[] modes = { PhasedSolver.MODE_ALL_AT_ONCE_OP, PhasedSolver.MODE_ONE_BY_ONE_OP }; |
|
186 |
int[][][] params = { |
|
187 |
{ {12,13,16,17} }, // white cross - all at once |
|
188 |
{ {0}, {1}, {2}, {3} }, // white corners - one by one |
|
189 |
{ {8}, {9},{10},{11} }, // 2nd layer edges - one by one |
|
190 |
{ {14,1} } // cyclic (cubit,quatIndex) - yellow cross |
|
191 |
}; |
|
192 |
int[] modes = { |
|
193 |
PhasedSolver.MODE_NOT_CYCLIC, |
|
194 |
PhasedSolver.MODE_NOT_CYCLIC, |
|
195 |
PhasedSolver.MODE_NOT_CYCLIC, |
|
196 |
PhasedSolver.MODE_CYCLIC_O_FIRST |
|
197 |
}; |
|
198 |
|
|
188 | 199 |
PhasedSolver ps = new PhasedSolver(so,params,modes); |
189 | 200 |
|
190 | 201 |
runOnUiThread(new Runnable() |
Also available in: Unified diff
Make the Phases more generic - now subphases can contain any subsets of the cubits involved in the whole phase.