Assignment 3

Designing Methods

Text as pdf or html


Assignment 3 notes


To generate random numbers,
  import java.util.Random;
  
then define field:
  Random RAND = new Random();
  
then define a method:
  // produce a random number in the range [0, 5)
  int randomNum(){
    return this.RAND.nextInt() % 5;
  }
  
and use it when you need such number. Adjust this to fit your game design.

Due Date: Thursday October 1st, 10:00 pm.