Exemplo n.º 1
0
 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 // Construct a facelet cube from a string
 FaceCube(String cubeString) {
   for (int i = 0; i < cubeString.length(); i++)
     f[i] = Color.valueOf(cubeString.substring(i, i + 1));
 }
Exemplo n.º 2
0
 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 FaceCube() {
   String s = "UUUUUUUUURRRRRRRRRFFFFFFFFFDDDDDDDDDLLLLLLLLLBBBBBBBBB";
   for (int i = 0; i < 54; i++) f[i] = Color.valueOf(s.substring(i, i + 1));
 }