Exemple #1
0
    public void Solver()
    {
        readCube.ReadState();

        //지금상태를 스트링으로받고
        string moveString = cubeState.GetStateString();

        print(moveString);
        //큐브를풀고



        string info = "";
        //SearchRunTime,Search 모두 코시엠바 클래스


        string solution = Search.solution(moveString, out info);

        if (justOne)
        {
            solution = SearchRunTime.solution(moveString, out info, buildTables: true);
            justOne  = false;
        }


        List <string> solutionList = StringToList(solution); //코시엠바 해답에서 공백을빼고 정리함

        Automate.moveList = solutionList;                    //무브리스트에 리스트를 새로넣어서 업데이트에서 자동으로돌아감
        //해법무빙을 리스트로받고
        //Automate에 리스트넣고
    }
    public void Solver()
    {
        readCube.ReadState();
        //get faces state of the cube as a string
        string moveString = cubeState.GetStateString();

        print(moveString);

        //solve the cube
        string info = "";
        //Fist time build the tables

        string solution = SearchRunTime.solution(moveString, out info, buildTables: true);

        //Every other time
        //string solution = Search.solution(moveString, out info);

        //convert the solved moves from a string to a list
        List <string> solutionList = StringToList(solution);

        //Automate the list
        Automate.moveList = solutionList;
        print("hi");
        print(info);
    }