public static PlaceShipRequest GetLocationFromComputer() { PlaceShipRequest ShipToPlace = new PlaceShipRequest(); ShipToPlace.Direction = getDirection(GetRandom.GetDirection()); ShipToPlace.Coordinate = new Coordinate(GetRandom.GetLocation(), GetRandom.GetLocation()); return(ShipToPlace); }
public static ShipCoordinates GetLocationFromComputer() { ShipCoordinates ShipToPlace = new ShipCoordinates(); ShipToPlace.Direction = getDirection(GetRandom.GetDirection()); ShipToPlace.Coordinate = new Coordinates(GetRandom.GetLocation(), GetRandom.GetLocation()); return(ShipToPlace); }