(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
Create an AntColony for simulating a game.
Create an AntColony for simulating a game .
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)
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 )