Ejemplo n.º 1
0
 def setUp(self):
     imp.reload(ants)
     hive = ants.Hive(ants.make_test_assault_plan())
     layout = TestProblem9.queen_layout
     self.colony = ants.AntColony(None, hive, ants.ant_types(), layout)
     self.queen = ants.QueenAnt()
     self.imposter = ants.QueenAnt()
Ejemplo n.º 2
0
 def setUp(self):
     imp.reload(ants)
     hive = ants.Hive(ants.make_test_assault_plan())
     layout = TestProblem9.queen_layout
     self.colony = ants.AntColony(None, hive, ants.ant_types(), layout)
     self.queen = ants.QueenAnt()
     self.imposter = ants.QueenAnt()
Ejemplo n.º 3
0
 def setUp(self):
     imp.reload(ants)
     hive = ants.Hive(ants.make_test_assault_plan())
     layout = ants.test_layout_multi_tunnels
     self.colony = ants.AntColony(None, hive, ants.ant_types(), layout)
     self.princess_peach = ants.PrincessAnt()
     self.princess_daisy = ants.PrincessAnt()
Ejemplo n.º 4
0
 def setUp(self):
     imp.reload(ants)
     hive = ants.Hive(ants.make_test_assault_plan())
     layout = ants.test_layout_multi_tunnels
     self.colony = ants.AntColony(None, hive, ants.ant_types(), layout)
     self.princess_peach = ants.PrincessAnt()
     self.princess_daisy = ants.PrincessAnt()
Ejemplo n.º 5
0
 def setUp(self):
     hive, layout = ants.Hive(
         ants.make_test_assault_plan()), ants.test_layout
     self.colony = ants.AntColony(None, hive, ants.ant_types(), layout)
Ejemplo n.º 6
0
 def setUp(self):
     hive, layout = ants.Hive(ants.make_test_assault_plan()), ants.test_layout
     self.colony = ants.AntColony(None, hive, ants.ant_types(), layout)