Esempio n. 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);
        }
Esempio n. 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);
        }