-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCritterMain.java
More file actions
26 lines (20 loc) · 836 Bytes
/
CritterMain.java
File metadata and controls
26 lines (20 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Authors: Stuart Reges and Marty Stepp
// modified for GRC CS 145
//
// CritterMain provides the main method for a simple simulation program. Alter
// the number of each critter added to the simulation if you want to experiment
// with different scenarios. You can also alter the width and height passed to
// the CritterFrame constructor.
public class CritterMain {
public static void main(String[] args) {
CritterFrame frame = new CritterFrame(60, 40);
// uncomment each of these lines as you complete these classes
frame.add(30, Gator.class);
frame.add(30, FlyTrap.class);
frame.add(30, Food.class);
frame.add(30, Bear.class);
frame.add(30, Lion.class);
frame.add(30, Giant.class);
frame.start();
}
}