What would I need to code for Ice Life? It keeps saying "either your code is really slow or has an infinite loop"

innerField = [
        [0,0,0,0,0,0,0,0,0,0],
        [0,0,0,1,0,0,0,0,0,0],
        [0,0,0,0,1,0,0,0,0,0],
        [0,0,0,0,0,1,0,0,0,0],
        [0,0,0,0,0,0,1,0,0,0],
        [0,0,0,0,0,0,1,0,0,0],
        [0,0,0,0,0,1,1,0,0,0],
        [0,0,0,0,0,0,0,0,0,0]
        ]

hero.findNearestEnemy().initField(innerField)
while True:
    hero.wait(60)

/\ my code

Did you read the guide and hints?

Yes, and it didn’t help.

Copy Git Hub!!!

This topic is a dead topic that was made 3 years ago, please don’t revive dead topics, and also, copying from GitHub isn’t a good way to learn

2 Likes

yes please dont do codecombat law illeagal methods
also PLEASE dont revive topics

2 Likes