public static void Main()
Console.WriteLine("Horse Hunting Simulator");
Console.WriteLine("The game keeps going until the tank is accidentally burned or the horse is killed.");
Console.WriteLine("There are 2 attacks: 'stab' and 'shoot'");
Console.WriteLine("There is also a chance to miss an attack.");
Console.WriteLine("Enter your name to continue: ");
string name = Console.ReadLine();
Console.WriteLine(huntGame(name));
static string huntGame(string name)
Console.WriteLine("Welcome to the hunt, " + name + "!");
Random random = new Random();
int horseHP = random.Next(200, 500);
string [] attacks = {"Shoot", "Stab"};
while (horseHP > 0 || burned == true)
Console.WriteLine("Horse's HP: " + horseHP);
foreach (string attack in attacks)
Console.WriteLine("- " + attack);
Console.WriteLine("Choose an attack: ('1' or '2') ");
string choice = Console.ReadLine();
Console.WriteLine(name + " does " + attacks[0]);
Console.WriteLine(name + " does " + attacks[1]);
Console.WriteLine("Invalid choice!");
int hitChance = random.Next(1, 10);
Console.WriteLine("Missed!");
int burnChance = random.Next(1, 10);
int damage = random.Next(20, 100);
horseHP = horseHP - damage;
return "The horse has been killed! Yeah~!";
return "The tank got burned! No~!";