コード例 #1
0
 public PhenotypeView(Sudoku sudoku, int fitness, int iterationNumber)
 {
     this.Iteration = iterationNumber;
     this.Fitness   = fitness;
     this.Sudoku    = sudoku;
 }
コード例 #2
0
 public Phenotype(Sudoku puzzle)
 {
     this.Genotype = new Genotype(puzzle);
     this.Fitness  = this.evaluateFitness();
 }
コード例 #3
0
 public PhenotypeView(Phenotype phenotype, int iterationNumber)
 {
     this.Iteration = iterationNumber;
     this.Fitness   = phenotype.Fitness;
     this.Sudoku    = phenotype.Sudoku;
 }