/// <summary> /// Erzeugt eine Generation. /// </summary> /// <remarks></remarks> public void CreateGeneration() { Generator<Proband> evolutionGenerator = new Generator<Proband>(); Maze4 maze = Maze; int generation = CurrentGeneration++; int index = 0; Probanden = evolutionGenerator.CreateGeneration(GenerationSize, code => new Proband(maze, generation, Interlocked.Increment(ref index), code)); }