예제 #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);
 }