CSE 113 - Spring 2011 - Banner
  • CSE 113 - Spring 2011
CSE 113 - Spring 2011 - Navigation
CSE 113 - Spring 2011 - Practice Assignment 4

Practice Assignment 4
Last modified: February 20 2011 03:11:51 PM

CSE 113 - Spring 2011 - Announcements

If you don't remember how to do any of the steps (like, copying, zipping, etc), please refer back to Lab 1.

For this assignment, you will work on the Practice Assignment 4 scenario, located in /eng/class/notes/cse113/scenarios/PracticeAssignment4. You will need to copy that directory into your account. If you are working from home, you can copy the PracticeAssignment4.zip from the link. (Note that this scenario is similar to, but different from the scenario at the end of Practice Assignment 3, so you will need to copy over the new scenario to work on this assignment.)

By the end of this assignment, the functionality of the "ocean" scenario should be as follows:

The starfish will "move" randomly. That is with some random probability, each starfish will move. The exact percent of time the starfish moves is up to you, but you need to make it move less than 50% of the time.

The dolphin will turn left or right when the user presses the left or right arrow keys.

If a dolphin collides with a starfish, the scenario stops.


Submitting the Assignment

Once you have finished your changes to the code, you will submit the zipped up version of the practice assignment 4 scenario.

For directions on submitting, please see here.

This practice assignment is due on Friday, March 18th at 11:59:59pm.


Grading Information

Please make sure to look at your grading information on Web-CAT. See the grading information page for more details about how to interpret Web-CAT grade reports.

The following tests were run on your assignment submission.

  1. (10 points) The Dolphin moves whenever act() is called.
  2. (10 points) The Dolphin turns when it hits the edges of the world.
  3. (20 points) The Dolphin turns left when the user hits the left arrow key.
  4. (20 points) The Dolphin turns right when the user hits the right arrow key.
  5. (20 points) If the Dolphin collides with a starfish, the scenario stops.
  6. (20 points) The Starfish move randomly - they do not move every time act is called.

Lab authored by Adrienne Decker

CSE 113 - Spring 2011 - Footer

Page maintained by Adrienne Decker

Contact: adrienne@buffalo.edu | 130 Bell Hall | (716)645-3184