示例#1
0
        public string RenderGetFireSpot()
        {
            Console.Clear();
            RenderCurrentPlayerBoard();
            Console.WriteLine(gameController.GetCurrentPlayerName() + " it's time to pick a location to fire! Enter your location like: 'B5'\n\n");
            string fireSpot = Console.ReadLine();

            while (true)
            {
                if (ValidateMissileInput(fireSpot))
                {
                    break;
                }
                else
                {
                    Console.WriteLine(gameController.GetCurrentPlayerName() + " your location was incorrectly formatted! Enter your location like: 'B5'\n\n");
                    fireSpot = Console.ReadLine();
                }
            }

            return(fireSpot);
        }
示例#2
0
        private void SetAttackLabel()
        {
            var name = _gameController.GetCurrentPlayerName();

            lbl_playerAttack.Text = $"{name} Attacks";
        }