/// <summary> /// Adds a new individual with the given genome. /// Does nothing in the case of a duplicate /// </summary> /// <param name="genome"></param> /// <returns>Successfully added - false id genome already present.</returns> public bool AddGenome(string genome) { if (Individuals.Any(i => i.Genome == genome)) { return(false); } Individuals.Add(new Individual(genome)); return(true); }