示例#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);
 }