Before starting this lab you should have read Chapter
9 and Chapter 10 in your text.
We can create a variable which contains a list of
items. Open up the Rockettes world from your CS105 folder and see the
variable that was created in the world (under properties). The
statements "For all in order" and "For all together" allow you to have all
the objects in the list perform the same operations, either in sequence or
all together. Try out the Rockettes' kick as described in section 9.1
of your text.
We can also choose an item at random from a list.
Open up the WhackAMole world and create the methods as described in 9.2 to
create a WhackAMole game.
Assignment: Modify the WhackAMole game as
described in exercise 6 on p282.
A variable need not be a list, but instead may be used to
keep track of information used in your program, like the current score in
our game. Open up the TimerTester class and try the timer example in
section 10.1 of your text.
Assignment: Change the scoring in
WhackAMole so that the score is displayed as 3D text as described in
exercise #1 on p313.