Beispiel #1
0
        public int[] getUserShot(Player p)
        {
            InputValidator validate = new InputValidator();

            int[] arrayCoord = new int[2];

            Console.WriteLine("Player {0} where would you like to attack?", p.playerName);
            arrayCoord = validate.validateInput();
            return(arrayCoord);
        }
Beispiel #2
0
        public int[] setShipCoords()
        {
            InputValidator validate = new InputValidator();

            int[] arrayCoord = new int[2];

            Console.WriteLine("Select and X and Y coordinate at which you want to place this ship: ");

            arrayCoord = validate.validateInput();

            return(arrayCoord);
        }