예제 #1
0
    // Start is called before the first frame update
    public void RunAutoSingle()
    {
        sudokuController.RecordSudokuLog();

        int cnt = 0;

        while (true)
        {
            if (cnt >= 81)
            {
                print("AUTOSINGLEMANAGER ERROR");
                return;
            }
            bool h = hintManager.FindHiddenSingle(true);
            bool n = hintManager.FindNakedSingle(true);

            if (h == false && n == false)
            {
                multipurposeDialogManager.RunDialog("Auto Single!");
                sudokuController.FinishSudoku();
                break;
            }
            cnt++;
        }
    }
예제 #2
0
파일: Test.cs 프로젝트: pantokr/Gyudoku
 public void Tester()
 {
     hintManager.FindNakedSingle(false);
 }