public void PlayerTurn()
        {
            UserInterface.DisplayMenuOptions();
            int userInput = UserInterface.GetUserInputInt("Please enter the number of your selection");

            switch (userInput)
            {
            case 1:
                BattleshipAttack();
                break;

            case 2:
                attackingBoard.DisplayGameboard();
                PlayerTurn();
                break;

            case 3:
                defendingBoard.DisplayGameboard();
                PlayerTurn();
                break;

            default:
                UserInterface.InvalidSelection();
                PlayerTurn();
                break;
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Gameboard gameboard = new Gameboard();

            gameboard.DisplayGameboard();
        }