The new level: By Any Other Name, has no gems. Making it impossible to complete. Other than that, it is a good level.
The point of the level is to change the variable names. If you don’t see any gems, it sounds like you haven’t changed the variable names.
oops, I hadn’t changed them. Thanks
What does he serg mean by that??
oh nevermind, i got it
(Polish language) I can not do this PLEASE send me the code
I have changed them and no gems appear
// Change the names of variables to make gems appear! // Change the name of variable "enemy1" to "chunky". var chunky = hero.findNearestEnemy(); hero.attack(chunky); hero.attack(chunky); // Change the name of variable "enemy2" to "monkey". var monkey = hero.findNearestEnemy(); hero.attack(monkey); hero.attack(monkey); // Collect the gems after changing the variables. hero.moveUp(); hero.moveRight(); hero.moveRight();
It seems, that level stop to work correctly with python
# Change the name of variable "enemy1" to "chunky". chunky = hero.findNearestEnemy() hero.attack(chunky) hero.attack(chunky) # Change the name of variable "enemy2" to "monkey". monkey = hero.findNearestEnemy() hero.attack(monkey) hero.attack(monkey) # Collect the gems after changing the variables. hero.moveUp() hero.moveRight() hero.moveRight()
I already passed it with this code, but now germs not appeared.
Same… idk how, i think its without ;
Having the same problem (change variable names but no gems appear,) based on the discussion history it looks as though this is a recent bug. Does anyone know how to report it?
I figured that since the game has worked so well for so many people, and the problem just appeared today, it was more likely to be something trivial than a problem in the programming. Anyway, I decided to switch the hero from “Anya” to “Tharin.” That did the trick. Running the same code solution with Tharin caused the gems to appear and I was able to complete the level.
Curious to hear if this works for other people as well.
Hey actually, we just deployed a fix for the level! Not everyone will see it immediately, but, simply reloading the page should fix the issue.
If not, give it another day for our caches to clear, and then try again!
Sorry about that.
This level isn’t working for me. I tried both reloading the page twice and switched from Tharin to Alejandro and back. It’s not a big deal, but it bugs me to see an “unfinished” flag in Kithgard when I’m in the mountains.
Can you be a little more specific? What is not working as expected? Please post your code so we can check whether there is actually a bug.
I found it confusing and played with lots of different approaches before I got to solution. I don’t see the point of this exercise if I change a variable name in such an obtuse way.
Please avoid posting solutions, that takes away the whole point of the game—several players will blindly use such solutions and end up not learning the concepts that the level was supposed to teach, only to find themselves stuck in a further level.
As for the purpose of the level, I believe it is to show that a variable’s name has no relation with its value—you can change the name of a variable to anything and it will still hold the value that you assigned to it.
Here’s my code:
# Change the name of variable "enemy1" to "chunky". chunky = hero.findNearest(hero.findEnemies()) hero.attack(chunky) # Change the name of variable "enemy2" to "monkey". monkey = hero.findNearest(hero.findEnemies()) hero.attack(monkey) # Collect the gems after changing the variables. hero.moveUp() hero.moveRight() hero.moveRight()
@GundericusTheMighty Thanks, I managed to reproduce the problem. It seems that if you kill the enemies in a single strike, the gems will not appear. It looks like a bug, in my opinion. /cc @Bryukh @Serg
By the way, if you attack each enemy twice (even if they are already dead after the first strike), you should be able to pass.