Does Toil and Trouble have a bug?

Your second snippet is equivalent to having no code at all, you are not actually commanding any of your friends. They will just act according to their default AI, which might just be enough to beat the level if you are lucky enough.

Please try resubmitting your second snippet (or just submit with no code at all) a couple more times, if you manage to beat the level frequently enough then please open a GitHub issue reporting your findings.

It does it every time.

The problem is I don’t know how to do it after i’ve created an account. Can you go to this topic and help me?