Assignment 2


This programming assignment continues the theme from Assignment 1. Essentially, you will "objectify" the code from Assignment 1, while also adding new features, and estimating new probabilities.

In this assignment, just like Assignment 1, agents are placed in a grid at starting locations, and are given destination locations. The agents move as before trying to reach their destinations. Again, the simulation stops when all agents have reached their destination or some agents remain irretrievably stuck. This particular assignment will differ from Assignment 1 in the following ways:

In this assignment, unlike the first assignment, we will use agents with different capabilities: Your overall goal in this assignment is see whether "horsepower" makes a significant difference in the ability of agents to get to their destinations. To determine the "horsepower" of each agent, select this number randomly between 1 and H. You will need to read in the value of H from the screen.

Deliverables:

Submission: