-
Notifications
You must be signed in to change notification settings - Fork 0
/
CritterMain.java
26 lines (22 loc) · 910 Bytes
/
CritterMain.java
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
// CSE 142 Homework 9 (Critters)
// Authors: Stuart Reges and Marty Stepp
// modified by Kyle Thayer
//
// 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, Bear.class);
frame.add(30, Tiger.class);
frame.add(30, WhiteTiger.class);
frame.add(30, Giant.class);
frame.add(30, NinjaCat.class);
frame.add(30, FlyTrap.class);
frame.add(30, Food.class);
frame.start();
}
}