Hi I need help with Spring thunder! [Solved]

I cant get all of the coins and gems.
This is my code…

while True:
    item = hero.findNearestItem()
    # A silver coin has a value of 2.
    # Collect if item.type is equal to "coin"
    # AND item.value is equal to 2.
    if item.type == "coin" and item.value == 2:
        hero.moveXY(item.pos.x, item.pos.y)
    # A blue gem has a value of 10.
    # Collect if item.type is equal to "gem"
    # AND item.value is equal to 10.
    if item.type == "gem" and item.value == 10:
        hero.moveXY(item.pos.x, item.pos.y)

thanks for any help! :heart_eyes:

Does any body now how to complete it???

Hello and welcome to the Code Combat discourse @Robert_Smith. :partying_face: We have some amazing people who would LOVE to help you with bugs, creating levels, and getting through levels. Don’t forget though, when you need help, create a new level, and format your code correctly Or, you can just chat with others in topics. Please go to this topic: here to see more details. We would be happy to just chat with you to!

Oh i didn’t know… Thanks!

no problem. There is just about always someone online who can help.

Can you please format it using the </> on the top of the post thingy? if you do that I would be sure to help you if i can!

i used the format tool

Thank you! Ok, just a sec.

I have been an this level for the past hour…

Your code is fine, but I might know the problem.
In order to complete the moveXY command, you need these boots

DO you have them?

i just hit submit and it did it!

Happy to help anytime, just @me if you need any!

i have them though…
i use most of the time i had armor boots on

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.