Sure, but here I imagined you could just home on the attacker's active sonar.
At that point, it already has enough information to get right up in the enemy's face.
Sword and shield indeed; it seems the submarine tactics people must have a lot of fun playing with these scenarios.