Timber Guard help for python

You can’t add a argument in the findFriends() method. You can find the friend type by using a different method, hero.findByType("soldier",hero.findFriends())

soldier= hero.findFriends("soldier")  # this method only returns a list of all friends

This line of code isn’t really needed since you are calling the findFriends() in the for loop. Also, I see that you are not collecting the coin after you find it.

Keep in mind that in the for loop, the variable is friend and not soldier when you command them.

One last piece, the move command needs an “object” not just the numbers, like {"x": 84, "y": 45}
A little trick, put your cursor where you want to enter the position in your code and then use your mouse on the map to shows the coordinates you want; hold down Shift and left click the mouse. It will drop those coordinates into your code.