public static void Main()
Console.WriteLine("Battle Simulator Game");
Console.WriteLine("You and the computer both have 100 HP and a set of 4 moves.");
Console.WriteLine("3 attacks and 1 healing move.");
Console.WriteLine("Whoever hits 0 HP first loses!");
Console.Write("Player 1 name: ");
string player1 = Console.ReadLine();
Console.Write("Player 2 name: ");
string player2 = Console.ReadLine();
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
while (playerHP > 0 || pcHP > 0)
Random crit = new Random();
Random miss = new Random();
foreach (string move in movelist)
Console.Write("Choose a move: (1, 2, 3, 4)");
string playerChoice = Console.ReadLine();
Console.WriteLine(player1 + " does " + movelist[0] + "!");
int lMissChance = miss.Next(1, 11);
Console.WriteLine("Missed!");
int lCritChance = crit.Next(1, 4);
Console.WriteLine("Critical Hit!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
else if (playerChoice == "2")
Console.WriteLine(player1 + " does " + movelist[1] + "!");
int mMissChance = miss.Next(1, 8);
Console.WriteLine("Missed!");
int mCritChance = crit.Next(1, 6);
Console.WriteLine("Critical Hit!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
else if (playerChoice == "3")
Console.WriteLine(player1 + " does " + movelist[2] + "!");
int hMissChance = miss.Next(1, 5);
Console.WriteLine("Missed!");
int hCritChance = crit.Next(1, 9);
Console.WriteLine("Critical Hit!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
else if (playerChoice == "4")
Console.WriteLine(player1 + " does " + movelist[3] + "!");
int failChance = miss.Next(1, 10);
Console.WriteLine("Failed to heal!");
int healCrit = crit.Next(1, 7);
Console.WriteLine("Critical Heal!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine("Invalid choice!");
Random rd = new Random();
int pcChoice = rd.Next(1, 5);
Console.WriteLine(player2 + " does " + movelist[0] + "!");
int lMissChance = miss.Next(1, 11);
Console.WriteLine("Missed!");
int lCritChance = crit.Next(1, 4);
Console.WriteLine("Critical Hit!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player2 + " does " + movelist[1] + "!");
int mMissChance = miss.Next(1, 8);
Console.WriteLine("Missed!");
int mCritChance = crit.Next(1, 6);
Console.WriteLine("Critical Hit!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player2 + " does " + movelist[2] + "!");
int hMissChance = miss.Next(1, 5);
Console.WriteLine("Missed!");
int hCritChance = crit.Next(1, 9);
Console.WriteLine("Critical Hit!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player2 + " does " + movelist[3] + "!");
int failChance = miss.Next(1, 10);
Console.WriteLine("Failed to heal!");
int healCrit = crit.Next(1, 7);
Console.WriteLine("Critical Heal!");
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
Console.WriteLine(player1 + "'s HP = " + playerHP);
Console.WriteLine(player2 + "'s HP = " + pcHP);
if (playerHP <= 0 || pcHP <= 0)
if (playerHP <= 0 && pcHP <= 0)
Console.WriteLine("It's a tie!");
Console.WriteLine(player2 + " wins!");
Console.WriteLine(player1 + " wins!");