public Destroyer(IShipPositioner positioner, Board board) { _positioner = positioner; Direction = _positioner.DetermineShipDirection(); Position = _positioner.GenerateShipPosition(board, this); }
public Battleship(IShipPositioner positioner, Board board) { _positioner = positioner; Direction = _positioner.DetermineShipDirection(); Position = _positioner.GenerateShipPosition(board, this); }