示例#1
0
        static void Main(string[] args)
        {
            Pokemon pk1 = new Pokemon("pikachu", "electrical", 30);
            Pokemon pk2 = new Pokemon("Charizard", "fire", 50);

            //Console.WriteLine($"Name is: {pk1.name}, Type: {pk1.type}, HP: {pk1.hp}");
            pk1.Display();
            pk2.Display();
            Console.Write("Pokemon after Health:");
            Console.WriteLine();
            Console.WriteLine(pk1.Health());
            Console.WriteLine(pk2.Health());
            pk1.Hunt(20);
            pk1.Hunt(40);
        }