parameters: (self, strategy, hive, ant_types, create_places, dimensions, food=2)
docstring: Create an AntColony for simulating a game.
  
          Arguments:
          strategy -- a function to deploy ants to places
          hive -- a Hive full of bees
          ant_types -- a list of ant constructors
          create_places -- a function that creates the set of places
          dimensions -- a pair containing the dimensions of the game layout
docstring_summary: Create an AntColony for simulating a game.
docstring_tokens: Create an AntColony for simulating a game .
function: def __init__(self, strategy, hive, ant_types, create_places, dimensions, food=2):
          """Create an AntColony for simulating a game.
  
          Arguments:
          strategy -- a function to deploy ants to places
          hive -- a Hive full of bees
          ant_types -- a list of ant constructors
          create_places -- a function that creates the set of places
          dimensions -- a pair containing the dimensions of the game layout
          """
          self.time = 0
          self.food = food
          self.strategy = strategy
          self.hive = hive
          self.ant_types = OrderedDict((a.name, a) for a in ant_types)
          self.dimensions = dimensions
          self.active_bees = []
          self.configure(hive, create_places)
function_tokens: def __init__ ( self , strategy , hive , ant_types , create_places , dimensions , food = 2 ) : self . time = 0 self . food = food self . strategy = strategy self . hive = hive self . ant_types = OrderedDict ( ( a . name , a ) for a in ant_types ) self . dimensions = dimensions self . active_bees = [ ] self . configure ( hive , create_places )