CSSE 220 – Object-Oriented Software Development

Homework 13

Objectives

Practice with arrays and ArrayLists in Java, in particular, two-dimensional arrays. More practice with loops and debugging in Java. More practice implementing classes based on a given specification.

Tasks

  1. Complete the assigned reading for the next session, according to the course schedule.
  2. Complete the assessment exercises over this reading on ANGEL (under Lessons → Assignments).
  3. Pair Programming: Conway’s Game of Life.
    1. In Eclipse, checkout the GameOfLife project from your shared repository for this project:

      • This is a shared repository where you’ll work on Game of Life with your partner.
      • The URL for your shared repository is:
            http://svn.csse.rose-hulman.edu/repos/csse220-201030-life-teamXX
        
        where XX is your team number as given by your instructor.
      • Note: Now that you’re working with a partner, you can get hard-to-resolve SVN conflicts with your partner’s code. So please remember to do Team → Update for the project
        • when you first start working in Eclipse, and
        • whenever you are about to commit.

        If you and your partner always work together doing pair programming, then conflicts should not be a problem. (But be sure to ask for help if you get stuck.)

    2. Complete the TODO items in GameOfLife and GameOfLifeTest. The items are numbered in the order that you should complete them.
    3. Try some different initial configurations. The method getGliderList() in GameOfLifeMain generates a list representing the classic glider formation.
    4. Make sure that:
      • Both team members understand all the code the team is turning in.
      • All methods are documented.
      • All TODO items are completed.
      • No errors or warnings remain.

Remember, in all your code:

  • Write appropriate comments:
    • Javadoc comments for public fields and methods.
    • Explanations of anything else that is not obvious.
  • Give self-documenting variable and method names:
    • Use name completion in Eclipse, Ctrl-Space, to keep typing cost low and readability high.
  • Use Ctrl-Shift-F in Eclipse to format your code.
  • Take care of all auto-generated TODO's.
    • Then delete the TODO comment.
  • Correct ALL compiler warnings.
    • Quick Fix is your friend!

Here is the grading rubric for this assignment.

Turn-in Instructions

Turn in your programming work by committing it to your SVN repository for this project.