Esempio n. 1
0
        private void SolvePuzzle(object sender, EventArgs args)
        {
            (bool valid, List <int> added) = solve.Solve();
            board.SetAdded(added);

            if (valid)
            {
                solveResult.ForeColor = Color.DarkGreen;
                solveResult.Text      = "Solved";
            }
            else
            {
                solveResult.ForeColor = Color.Red;
                solveResult.Text      = "Puzzle";
                CheckPuzzle(null, null);
            }
        }