CSC171 Introduction to Computer Programming
Fall 2018
Homework 6

  1. Implementation:

  2. Maintenance:
    • The customer requests a change: instead of having all games between user and computer, now the user decides for each player: whether that player is a human or computer. So the games can be played as: computer vs. computer, computer vs. human, human vs. computer, or human vs. human. These selections (human/computer) for each player will remain for all games of a particular run of the program. If you used method decomposition in your design, this update will be a lot easier.

      Try to do this update without redundant code. Much of your code will remain the same, e.g. the method that determines a winner, the method that updates stats for a particular player (wins, losses, ties), etc.

Method decomposition counts for 25%. Correctness counts for 25%. Test cases count for 25% of the grade. Readability counts for 25%. Follow the programming conventions/guidelines we discussed.

Hand in a printout of your source code and outputs, as described above. The assignment may be done individually or in groups of TWO according to the rules of pair programming (as we discussed) but not more than two per group (in order to receive credit for your work, do not share code between groups). If you work in a group, hand in one copy with both your names on it.

[Back to the Assignments Index]