Example #1
0
        private void EndMatch(Winner winner)
        {
            switch (winner)
            {
            case Winner.Player:
                _bot.Lost();
                Console.WriteLine($"IMPOSSIBLE... {_player.GetPlayerName()}!! HOW CAN YOU BEAT ME!!");
                break;

            case Winner.Bot:
                _player.Lost();
                Console.WriteLine($"You lost.. GGWP... Better luck next time {_player.GetPlayerName()}.. HUEHUEHUE");
                break;

            case Winner.Tie:
                Console.WriteLine($"Darn we tied...");
                break;
            }

            if (_bot.GetCurrentHealth() == 0)
            {
                Console.WriteLine($"You have defeated me... *machine dying sounds* ------------------------");
            }
            else if (_player.GetCurrentHealth() == 0)
            {
                Console.WriteLine($"I HAVE DEFEATED YOU MERE MORTAL!!!!");
            }
            else
            {
                NewMatch();
            }
        }