I have been looking at all the discussions regarding the Munchkins Harvest in the Backwoods Forrest, but have not been able to pass this level. I’ve been at it for about 5 days now. Here is my code:
loop {
var enemy = this.findNearestEnemy();
if (this.isReady("cleaver")); {
this.cleave(enemy);
} else {
this.attack(enemy);
}
}
Hoping I writing the correct code, but nothing seems to work. Perhaps it’s a bug.
Please read the FAQ before you post again. It is important that you learn how to format your code. I’ve done it for you this time.
Two things:
The semicolon in your third line is placed wrong.
The technique is "cleave
", not "cleaver"
.
1 Like
Even with the correct code and adequate armor, is it possible that only my session has a bug?
You need to add:
this.findEnemies()
between the brackets of:
var enemy = this.findNearestEnemy();
1 Like
Thank you so much FuzzyCheese! Had to take this up with customer service and boy, it has been quite the learning experience.
Lessons learned:
I need to always, Always, ALWAYS check FAQs first.
I had loads of armor, but needed the specific sword for cleaving - just because it’s an expensive sword, doesn’t mean it can cleave.
Just keep trying, even if I feel like an idiot.
2 Likes
maka
April 15, 2016, 3:57pm
7
Lessons 1 and 3 apply to many things outside of programming as well!
The “your weapon doesn’t have cleave” error is fairly common on that level, so don’t feel bad about it. I’ve made the mistake as well.
1 Like
You are absolutely right about lessons 1 and 3. Thanks Maka
maka:
Lessons 1 and 3 apply to many things outside of programming as well!
The “your weapon doesn’t have cleave” error is fairly common on that level, so don’t feel bad about it. I’ve made the mistake as well.
Please help!
Can’t finish Munchin Harvest what to do, try 7 days? Greeting
Hi there, try getting a stronger gear because it seems like your hero is dying due to the lack of health.