import becker.robots.*;

import java.util.Random;


/*******************************************************
 * This driver acts as the client for Traveller Robot,
 * the 2009 TEE2O Final Exam Question
 * @author Chris D'Arcy
 ******************************************************/

public class Pandemic {
	
  public static void main(String[] args) {
 
    // Create a Frame for this Activity
    City world = new City(10, 10);

    // Display the number of Things at each intersection for verification purposes
    world.showThingCounts(true);
    
    // Create a random number generator object
    Random random = new Random();

    // Scatter 50 viruses around the world 
    for (int i = 0; i < 50; i++) {
      Thing virus = new Thing(world, random.nextInt(10), random.nextInt(10));

      virus.getIcon().setSize(0.1);
    }
	
    // Place a Traveller object at the center of the world 
    Traveller nomad = new Traveller(world, 5, 5, Direction.NORTH);

    // Run the simulation in which the Traveller travels around the world,
    // exposing itself to the viruses
    nomad.travel();
  }
	
}
