private List <SolutionCell> ValidateSolution(Dictionary <Cell, IResult> solution, List <SolutionCell> inputs) { foreach (var item in solution) { SolutionCell input = inputs.Where(x => x.Row == item.Key.Row && x.Column == item.Key.Column).Single(); input.State = item.Value.Compare(input.Input); } return(inputs); }
internal CutTree(int rectLength, int rectWidth, SolutionCell cell, CutTree left, CutTree right) { this.Length = rectLength; this.Width = rectWidth; this.Kind = cell.Type; this.IndexOfPieceOrValueOfCut = cell.Index; this.CutDirection = cell.DirOfCut; this.Left = left; this.Right = right; }