i dont know what is wrong with my code can some one please help?
You have to attack the FIRST enemy not ENEMIES as a group.
So in order to attack first enemy you have to say hero.attack(enemies) instead of hero.attack(enemies)
Always try to use Hints before reaching out for help to forum.
ok thanks janeek i will do that next time