Files
SharpPropagation/SharpPropagation/Program.cs
T

28 lines
793 B
C#

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharpPropagation
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("********** Sharp Propagation (Console) 2022 **********");
Random random = new Random();
Population peoples = new Population(new Size(30,50),random,10,10,5);
peoples.SetDisease(new Disease(random,20,10,5,"Chick Chicken"));
Console.WriteLine("Before Propagation");
peoples.Display();
peoples.Propagate();
Console.WriteLine("After Propagation");
peoples.Display();
Console.ReadKey();
}
}
}