예제 #1
0
 public FleetDeployer(IShipGenerator shipGenerator, IRandomDataProvider randomDataProvider)
 {
     ShipGenerator      = shipGenerator;
     RandomDataProvider = randomDataProvider;
 }
예제 #2
0
 public ShipGeneratorTests()
 {
     _shipGenerator = new ShipGenerator();
 }
 public SeaBattleGame(IShipGenerator randomShipGenerator, IShipPlacer shipPlacer)
 {
     this.randomShipGenerator = randomShipGenerator;
     this.shipPlacer          = shipPlacer;
     ResetGrid();
 }
 public ShipsOnBoardGenerator(IShipGenerator shipGenerator, IInputValidator inputValidator)
 {
     _shipGenerator  = shipGenerator;
     _inputValidator = inputValidator;
 }