public static void Main()
heroClass hero1 = new heroClass("Support", 50, 0.2f, true);
heroClass hero2 = new heroClass("Carry", 200, 0.9f, true);
if (hero1.attackPower * hero2.blockPower > hero1.blockPower * hero2.attackPower)
Console.WriteLine(hero1.role + " character is win the battle. " + hero2.role + " character is dead." );
} else if ( hero1.attackPower* hero2.blockPower < hero1.blockPower * hero2.attackPower )
Console.WriteLine(hero1.role + " character is win the battle. " + hero2.role + " character is dead.");
Console.WriteLine("Result is draw.");
public heroClass(string myRole, byte myAttack, float myBlock, bool status)
Console.WriteLine(role + " character is attacking " + attackPower + " point and absorbing " + blockPower + " point.");