CS30 -- Introduction to Computer Science II
Fall, 2006
Assignment 6
(updated 10/5/2006)


Exercises:
[no exercises this week.]

Programming Projects:

1. Extend the Asteroids game program from the text. 
(1) Change the world so that asteroids and rockets can wrap around from top to bottom and side to side. 
(2) Alter your Station class so that it can move up and down and left and right.  You do not need to get fancy with drawing the Station -- the existing line is sufficient.  However, your new station should also wrap just like the asteroids and rockets will after step 1.  If you're really cool, you can get style points for the "classic look".  The station only moves by thrusters that fire in the opposite direction from the gun.  In order to change directions, you must aim and apply thrusters.  Of course, you continue moving in your current direction until that gets altered by your thruster.
(3)  When asteroids are reduced to zero size, remove them from the list of asteroids. 
(4) After a rocket has hit an asteroid or has moved for 25 time steps, remove it from the list of rockets.


Submission Instructions:
On your machine where you are doing your homework, create a folder called <your email name> followed by "A6".  For example, someone with email address "cjones" would create a folder called "cjonesA6".  Inside that folder, place whatever Java files are necessary for your Programming Projects in the same folder.  Finally, either tar or zip the folder so that when extracted, the folder "<emailname>A6" will be created.  Finally, submit via Eureka.