/**@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(); }
public GameSetup() { this.InitializeComponent(); numComputerShipsGenerator = new RangedRandomNumber(); computerNameGenerator = new RangedRandomNumber(); firstTurnGenerator = new RangedRandomNumber(); }