Cursed Wonderglade Design Error

I haven’t heard anyone else talk about this, but there seems to be a design error in Cursed Wonderglade. Even when the code is correct, the player has a random chance of dying anyway. If the hero is closer to the burl than the archer at the end, the hero will die because it checks for the closest enemy. For whatever reason, after copy-pasting my code a couple times, it fixed the issue. There were no changes to the code.

My code is as follows

# Wonderglade has changed since our last visit.
# Ogres cursed it and we should defeat them.
# The burl still is collecting gems, so don't touch them.
# Also don't attack the burl.

while True:
    # Find the nearest item.
    # Collect it (if it exists) only if its type isn't "gem".
    item = hero.findNearestItem()
    if item and item.type != "gem":
        hero.moveXY(item.pos.x, item.pos.y)
    # Find the nearest enemy.
    enemy = hero.findNearestEnemy()
    if enemy and enemy.type != "burl":

that isn’t a design issue that is just random chance. after you finish a specific level in the forest there isn’t the "done " button anymore now there is the “submit” button and the chance of you succeeding in the level is randomized even if you have the code correct. (however, if your code is perfect then it will work no matter how many times you submit.)

1 Like

someone, please close this topic @Deadpool198 @Chaboi_3000

We actually need to fix this level, because random seed issues shouldn’t interfere with completion on correct code. @Bryukh has it on his list.


Yes. It was a simple silly error. Fixed

1 Like