private void buttonInitialize_Click(object sender, EventArgs e) { GetValuesFromInterface(); w = new World(width, height, numAnts, numFoodPiles, foodPerPile); initialized = true; Display(); }
public Ant(World world, Rectangle home) { this.world = world; this.home = home; this.dir = (Directions)rand.Next(8); loc = home; hasFood = false; }