@@ -6,24 +6,28 @@ public ManyAnimals()
66 {
77 showSomeTurtles ();
88 }
9- //create container for Turtles HINT: Use ArrayList
10- //create a window for many turtles HINT: Use MultiTurtlePanel
9+ //create container for Turtles HINT: Use ArrayList --#2.1
10+ //create a window for many turtles HINT: Use MultiTurtlePanel --#1.1
1111 private void showSomeTurtles ()
1212 {
13- //show the panel
14- //set the size to 100
15- //add three turtles HINT: FOR loop which 'does an action'
16- //create a turtle
17- //add the turtles to the container for turtles
18- //add all turtles to the window HINT: Use a foreach loop
19- //NOTE: must call addTurtle BEFORE calling other methods
20- //add all turtles to the window
21- //teleport all turtles on the window HINT: Use a FOR loop and ZERO
22- //set the X position to i*100 + 350
23- //set the Y position to i*100 + 100
24- //set some values for all turtles HINT: Use a foreach loop
25- //set the speed of all turtle's to 7
26- //have every turtle draw a star of the current size
13+ //show the panel --#1.2
14+ //set the size to 100 --#5.4
15+ //add three turtles HINT: FOR loop which 'does an action' --#2.2
16+ //create a turtle --#2.4
17+ //add the turtles to the container for turtles --#2.5
18+ //repeat --#2.2
19+ //add all turtles to the window HINT: Use a foreach loop --#3.1
20+ //NOTE: must call addTurtle BEFORE calling other methods --#3.3
21+ //add all turtles to the window --#3.4
22+ //repeat --#3.2
23+ //teleport all turtles on the window HINT: Use a FOR loop and ZERO --#4.1
24+ //set the X position to i*100 + 350 --#4.3
25+ //set the Y position to i*100 + 100 --#4.4
26+ //repeat --#4.2
27+ //set some values for all turtles HINT: Use a foreach loop --#5.1
28+ //set the speed of all turtle's to 7 --#5.3
29+ //have every turtle draw a star of the current size --#5.4
30+ //repeat --#5.2
2731 }
2832 public static void main (String [] args )
2933 {
0 commit comments