Example #1
0
 bool SolveMiddleMiddle_CaseMiddle(CubeInfo.Cubie cubie, ref List <string> path)
 {
     if (_cubies.FrontRight(cubie))
     {
         string[] seqn = { "F", "D'", "F'", "D'", "R'", "D", "R" };
         path.AddRange(seqn);
     }
     else if (_cubies.RightBack(cubie))
     {
         string[] seqn = { "R", "D'", "R'", "D'", "B'", "D", "B" };
         path.AddRange(seqn);
     }
     else if (_cubies.BackLeft(cubie))
     {
         string[] seqn = { "B", "D'", "B'", "D'", "L'", "D", "L" };
         path.AddRange(seqn);
     }
     else if (_cubies.LeftFront(cubie))
     {
         string[] seqn = { "L", "D'", "L'", "D'", "F'", "D", "F" };
         path.AddRange(seqn);
     }
     return(false);
 }