static void Main(string[] args) { var weaselWorld = new WeaselWorld("ABCDEFGHIJKLMNOPQRSTUVWXYZ ", "METHINKS IT IS LIKE A WEASEL"); weaselWorld.CreateWeasel(0.04d, 100); Console.ReadKey(); }
private Individual ReproduceChild(double mutationRate, string alphabet) { var newLookslike = Lookslike.Select(c => WeaselWorld.MutateCharacter(c, mutationRate, alphabet)); return(new Individual(new string(newLookslike.ToArray()))); }