Penny Pitch 2 ... The Game!!!

  • Large Scale PennyPitch Bonus Assignment (5pts):
    • Save your PennyPitch.java file as PennyPitch2.java
    • In the PennyPitch2.java file, rename the class to PennyPitch2, i.e. public class PennyPitch2 extends ...
    • Modify the following line of code from:
      • private JTextArea output = new JTextArea(10, 20);
      • to private JTextArea output = new JTextArea(20, 36);
    • In the init() method change the resize (300, 300); statement to resize (600, 600).
    • In the initGame() method, increase the board size from a 5 x 5 to a 10 X 10.
    • In the initGame() method you must use a nesed for loop to place random values between 1 and 9 in each square.
    • In the initGame() method, increase the number of turns for a game from 20 to 40.
    • Modify the displayBoard() method so that it uses nested enhanced for loops instead of the normal nested for loops.
    • Archive PennyPitch2.java and Square.java to the web as PennyPitch2.jar
    • Link to PennyPitch2.html file from your home page using DreamWeaver. You must put it up on the web to get the 5pts.