Prevent friendly robots in a team to shoot themselves when on line of sight

[email protected] Tue, 12 May 2020 17:54:36 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Hi
I'm preparing a team for 3vs3, but I am running into a problem

When 2 of them are shooting at the same enemy, they still shoot even if 
there is a tank of the same team in the line of sight.

This is what I mean

Team1Tank1 ---BULLET---> Team1tank2  --BULLET--> Enemy

Would it be possible to program them in such a way that Team1Tank1 knows 
that Team1Tank2 is in the way between himself and the enemy so that he 
stops shooting?

Thanks

-- 
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/robocode/7a65f886-1067-479c-84bd-bc47acc076a4%40googlegroups.com.