public static void Main()
Pokemon p1 = new Pokemon("Pikachu", "Electric", 50, "Thunder Shock");
Pokemon p2 = new Pokemon("Charmander", "Fire", 45, "Flame Burst");
public Pokemon(string n, string t, int hp, string a)
Console.WriteLine("Pokemon: \n Name: " + name + "\n Type: " + type + "\n Hit Points: " + health + "\n Attack: " +attack +"\n");
public void Battle(Pokemon other)
Console.WriteLine("This is the Battle() method of my Pokemon class \n");
Console.WriteLine("Get ready for battle!");
int p1HP = this.getHealth();
int p2HP = other.getHealth();
while(p1HP > 0 && p2HP > 0)
Random random = new Random();
int hit = random.Next(2);
int damage = random.Next(10,16);
Console.WriteLine("***** hit " + hit);
Console.WriteLine("***** damage " + damage);
Console.WriteLine("***** ** this HP " +p1HP);
Console.WriteLine("***** ** other HP " +p2HP);
Console.WriteLine("***** ** this HP " +p1HP);
Console.WriteLine("***** ** other HP " +p2HP);