Just a very minor point, but one to bear in mind when testing anything…
We already saw in the previous test that both enemies choose the back player - that’s locked in by the order of the players in their list. So after modifying the code to shoot the weaker player first, the subsequent test to ‘prove it works’ didn’t prove anything!
(I’m certain the code will work properly it all looked perfect as usual. My point is to make sure that code tests do actually test what you want to find out).
8 Likes