Why are loops and the attack command not working?

Use while True: instead of loop: now. loop: was an old CodeCombat-specific syntax construct we put in back when our transpiler required a workaround to make your code not infinitely loop when your loop was empty, but now we can do that inside the normal Python while True: loop, and recently I removed support for loop: (from which we had switched away in our sample code years ago).

5 Likes