예제 #1
0
        private GridAnswer[] ValidateTargets()
        {
            List <GridAnswer> answers = new List <GridAnswer>();

            for (int i = 0; i < targets.Count; i++)
            {
                GridSquareScript target  = targets[i];
                bool             correct = GridSolver.SolveGridAtIndex(gridSquares, target) != GridSolutionType.None;
                target.MarkSquareComplete(); //MarkSquareIncorrect();
                print($"Target {target.Index} ({target.Number}) is correct? {correct}");
                answers.Add(new GridAnswer
                {
                    index   = target.Index,
                    number  = target.Number,
                    correct = correct
                });
            }
            return(answers.ToArray());
        }
예제 #2
0
 public bool ValidateFtueTarget(GridSquareScript target)
 {
     return(GridSolver.SolveGridAtIndex(gridSquares, target) != GridSolutionType.None);
 }