Phase 1 - Basic gameplay & Phase 2 - Ants

In the first phase you will complete the implementation that will allow for basic gameplay with the two basic Ants: the HarvesterAnt and the ThrowerAnt.

Now that you've implemented basic gameplay with two types of Ants, let's add some flavor to the ways ants can attack bees. In this phase, you'll be implementing several different Ants with different offensive capabilities.

Problem 1

Specs: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-1-1-ptarrow-up-right

class HarvesterAnt(Ant):
    """HarvesterAnt produces 1 additional food per turn for the colony."""

    name = 'Harvester'
    implemented = True
    food_cost = 2

    def action(self, colony):
        """Produce 1 additional food for the COLONY.

        colony -- The AntColony, used to access game state information.
        """

        "*** YOUR CODE HERE ***"
        colony.food += 1

Problem 2

Specs: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-2-3-ptarrow-up-right

Problem 3 & Phase 2 - Problem 4

Specs - Problem 3: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-3-2-ptarrow-up-right

Specs - Problem 4: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-4-2-ptarrow-up-right

Problem 5

Specs: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-5-3-ptarrow-up-right

Problem 6

Specs: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-6-2-ptarrow-up-right

Problem 7

Specs: https://inst.eecs.berkeley.edu/~cs61a/su19/proj/ants/#problem-7-2-ptarrow-up-right

Last updated