예제 #1
0
    void Test1()
    {
        _cubies.Reset();
        _cube.turn("F'");
        _cube.turn("D");

        CubeInfo.Cubie        cubie = null;
        List <CubeInfo.Cubie> list  = _cubies.FindTopMiddle();

        foreach (CubeInfo.Cubie c in list)
        {
            if (_cubies.MiddleRow(c))
            {
                cubie = c;
                break;
            }
        }

        List <string> path = new List <string>();

        SolveTopMiddle_CaseMiddle(cubie, ref path);

        string s = PathToString(path);

        Debug.Log("Run Test1: " + s);
        Debug.Assert(s == "F");
    }