Пример #1
0
        public static PlaceShipRequest GetLocationFromComputer()
        {
            PlaceShipRequest ShipToPlace = new PlaceShipRequest();

            ShipToPlace.Direction  = getDirection(GetRandom.GetDirection());
            ShipToPlace.Coordinate = new Coordinate(GetRandom.GetLocation(), GetRandom.GetLocation());
            return(ShipToPlace);
        }
Пример #2
0
        public static ShipCoordinates GetLocationFromComputer()
        {
            ShipCoordinates ShipToPlace = new ShipCoordinates();

            ShipToPlace.Direction  = getDirection(GetRandom.GetDirection());
            ShipToPlace.Coordinate = new Coordinates(GetRandom.GetLocation(), GetRandom.GetLocation());
            return(ShipToPlace);
        }