News for hackers. Stuff that matters.
Re:Show HN: A submarine combat game in the browser by aidenn0 on Tuesday January 21, 2025 @10:37PM (#42788677)
ELI5: Passive sonar gives you the opponent's bearing only; Active sonar gives you the opponent's bearing and range; active sonar gives your bearing to your opponent(s); firing a torpedo gives away your bearing to your opponent(s). Why wouldn't you confirm a solution with active sonar before firing?
Re:Show HN: A submarine combat game in the browser by cckolon on Tuesday January 21, 2025 @10:58PM (#42788831)
Maybe you don't want to give yourself away!
Re:Show HN: A submarine combat game in the browser by TeMPOraL on Wednesday January 22, 2025 @06:20AM (#42791547)
Sonar ignoramus here.

Can't you get the bearing and range with passive listening from two points, and/or single point but measuring over time?

As for why not to confirm a solution with active sonar before firing; if what you described are rules of the game, then IDK because it doesn't seem to load anymore. In real life, I imagine an active sonar ping being much clearer and more informative to the enemy than the noise generated by launching a torpedo.