예제 #1
0
 public Ant(Anthill hill, int antValueName)
 {
     _hill            = hill;
     _currentLocation = hill.CurrentLocation;
     _antValueName    = antValueName;
     _visited         = new ListOfEdges();
     _random          = new Random(_antValueName);
 }
예제 #2
0
파일: Graph.cs 프로젝트: Rhenin/AntColony
 public Anthill AnthillGenerate(int antCount)
 {
     //int anthillOnNode = rng.Next(1, graphSize);
     Anthill = new Anthill(antCount, _nodes.FindByValue(6));
     return(Anthill);
 }