I have been trying to get through that level for months but still haven’t got any hopes of defeating it. PLEASE HELP .
Please don’t request final code solutions. We don’t post them. The purpose of this board is to help people learn and simply providing/posting completed solutions is counterproductive to that goal. The best way to get assistance with a level would be to create a post - USING THE </> BUTTON TO POST YOUR CURRENT CODE - and explain what is happening and any errors you are receiving. Be sure to use the </> button or it won’t format properly.
There are many people here willing and able to help. If you use the </> button correctly, your code should look like this:
while True:
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
else:
hero.say("My code is formatted properly")
If it doesn’t look like the code above, you’re doing it wrong and we can’t see the structure of the code to troubleshoot whether or not that is the issue. Use the </> button and help us help you. This works when sending a private message as well. Thank you and welcome to the board.
In addition to what MunkeyShynes said, I wish to point out that there is no one way to beat Summit’s Gate. If your current code doesn’t work out, try using different equipment, tactics, maybe even heroes if you are a subscriber.