Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Cant Beat Village Guard


Hello, i’m new to CodeCombat and i’m stuck on Village Guard (i’m using python) and i’m wondering of anyone can help me.


Hello, Ryan, and welcome.

Phrases like “I need help!” don’t help us solve your problem. Elaborate. Post your code. A screenshot. A description of the error, or what your hero does. Don’t forget to format your code according to the FAQ!


Ok thanks for telling me.
this is my code:
self.moveXY(35, 34)
leftenemy = self.findNearestEnemy()
if leftenemy:
self.moveXY(60, 31)
rightenemy = self.findNearestEnemy()
if rightenemy:
when i get to this ^^^^^^ bash my warrior will walk up to the orge and then repeat the loop


@ChronistGilver Sorry didnt reply to you directly


Bash has a cooldown. After you bash, your bash action needs time to “recharge” before it can be used again.


Thanks! I never knew that!


…I just told you to format your code as per the FAQ. Please do so in the future.


[redacted, please don’t post solutions]

How to i beat Village Guard?

@Blaze Thanks for contributing. But please avoid posting full solutions, that takes away the whole point of the game which is to learn while writing the code.