Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Tasks
- {
- class Program
- {
- static void Main(string[] args)
- {
- int playerHealth = 100;
- int enemyHealth = 100;
- int round = 0;
- string playerName = "Бомж Аркадий";
- string enemyName = "Бомж Иннокентий";
- Random rand1 = new Random();
- Console.WriteLine("Восстали машины из пепла ядерного огня!");
- Console.WriteLine("И началась война за помойки на районе.");
- while (round >= 0)
- {
- round++;
- int playerCast = rand1.Next(1, 8);
- int playerDamage = 4;
- int enemyDamage = rand1.Next(5, 10);
- if(round % 6 ==0)
- {
- Console.WriteLine($"{playerName} озверел и включил <Режим Берсерка>");
- playerDamage += 10;
- }
- if (playerCast == 1)
- {
- Console.WriteLine($"{playerName} применил способность <С вертухана в ебасосину>");
- playerDamage = 15;
- }
- else if (playerCast == 3)
- {
- Console.WriteLine($"{playerName} применил способность <Похмелиться>");
- playerHealth += 10;
- Console.WriteLine("Ваши жизни увеличились на 10.");
- }
- else if (playerCast == 5)
- {
- Console.WriteLine($"{playerName} применил способность <Подскользнуться на кожуре>");
- playerDamage = 0;
- }
- else if ( playerCast == 7)
- {
- Console.WriteLine($"{playerName} применил способность <Спрятаться за угол>");
- enemyDamage = 0;
- }
- playerHealth -= enemyDamage;
- enemyHealth -= playerDamage;
- Console.WriteLine($"Бомж {enemyName} ударил вас на {enemyDamage}.");
- Console.WriteLine($"Бомж {playerName} ударил врага на {playerDamage}.");
- Console.WriteLine($"У бомжа {playerName} осталось{playerHealth} здоровья.");
- Console.WriteLine($"У бомжа {enemyName} осталось{enemyHealth} здоровья.");
- Console.WriteLine("______________");
- if (playerHealth <= 0)
- {
- Console.WriteLine($"Победил {enemyName}.");
- break;
- }
- if (enemyHealth <= 0)
- {
- Console.WriteLine($"Победил {playerName}.");
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement