Lab 7

Demonstration (5 pts, due at the end of Week 7 lab)

  • You must describe to me orally (or with some written aid) what you plan to do for this lab.
  • You must implement the die class (or alternative)
    • If you implement the die class, it must have all the functionality described on the main Lab page.
    • If you implement an alternative class, it must include at least three methods and one field, and do something interesting. One of the methods should be a constructor for the class.
  • You must have a separate class called Lab7.java with a main method for the game logic.
    • Your Lab7.java main method (or a method in a class other than the Die class) should demonstrate the "interesting" functionality of the die class or its replacement

Submission

  • Your game must create at least two instances of the Die (or alternative) class.
  • Your game must require interaction with at least one user.
  • Your game must make use of all of the methods implemented in the Die (or alternative) class.
  • Your game must make use of appropriate methods so that no single method is too complicated.
  • You must document how to play your game.
    • You should include a comment at the top of file Lab7.java describing how to play the game or refering to the PDF instructions for the game.
    • You may optionally include PDF instructions for the game.
    • Your game should be interesting. At most 5 points of the lab will be allocated to how interesting your game is.

Each student must submit their program with a block comment (/*...*/) at the beginning of the file that includes:

  • the course and section for which the class was written.
  • the term in which the course was taken.
  • the assignment for which the class was written.
  • the original author.
  • the date it was originally written.
/* 
 * Course: SE1020-003
 * Term: Winter 2008-2009
 * Assignment: Lab 1
 * Author: Blaise Pascal 
 * Date: 12/08/08
 */

Please submit your files using the form below.

Make sure the class has the same name as the the java file (e.g. Lab4 for Lab4.java), and that you have package <username>; where <username> is your username (without brackets <>) at the top of the file, just after the comment block.

Make sure you give the main program (Lab7.java) the exact name in the example. If you choose to include it, make sure you give the optional PDF documentation the same name as in the example too. (Note: Documentation of how to play your game is not optional -- but the PDF format is.)

Submission Instructions for Dr. Yoder

Submission (Due Week 8, Tuesday, 11pm)

Submit your lab electronically before the deadline listed above.

You should submit your solution only once, so be sure you are happy with your solution before you submit it.