Exemple #1
0
 /**@author Paul Harvey
  *
  * A minimum of 2 ships per player and a maximum of 5 ships.
  *
  * @param shipSize
  * @param fCoord
  * @param sCoord
  * @param hits
  * @param sunk
  */
 public Ship()
 {
     shipSizeGenerator  = new RangedRandomNumber();
     xCoordGenerator    = new RangedRandomNumber();
     yCoordGenerator    = new RangedRandomNumber();
     directionGenerator = new RangedRandomNumber();
 }
Exemple #2
0
 public GameSetup()
 {
     this.InitializeComponent();
     numComputerShipsGenerator = new RangedRandomNumber();
     computerNameGenerator     = new RangedRandomNumber();
     firstTurnGenerator        = new RangedRandomNumber();
 }