Пример #1
0
 public Destroyer(IShipPositioner positioner, Board board)
 {
     _positioner = positioner;
     Direction   = _positioner.DetermineShipDirection();
     Position    = _positioner.GenerateShipPosition(board, this);
 }
Пример #2
0
 public Battleship(IShipPositioner positioner, Board board)
 {
     _positioner = positioner;
     Direction   = _positioner.DetermineShipDirection();
     Position    = _positioner.GenerateShipPosition(board, this);
 }