Home » Stars! 2.6/7 » The Academy » Missile hit rate vs additional target tokens
Missile hit rate vs additional target tokens |
Mon, 22 November 2004 08:22 |
|
|
I'm trying to write the pseudo-code for missile attacks and I have a fundamental problem if the damage streams over to additional tokens.
There are 3 rules at work here:
1/ The maximum number of kills is limited to the number of missiles that hit. That's simple enough.
2/ The number of missiles that hit depends on (amongst other things) the jammers on the target. Again, simple.
3/ Each missile is tested individually against it's adjusted accuracy to see whether it hits. Still no problems.
Put all these together though and you do have a problem...
How many shots are available to target other tokens after killing all the ships in the primary target ?
Lets say the target token is 80 chaff, and I have 200 missiles with an accuracy of about 80%. The shot kills all 80 ships in the chaff stack, and now streams over to a set of beam BBs.
How many missiles should target the beamers ? Is it 120 (ie. 200 - the 80 kills) ? That doesn't sound right, as it implies that no missiles targeted at the chaff missed.
Should it be 100 ? That sounds better - if I got 80 kills then I must have fired 100 missiles.
Unfortunately this runs into problems because of 3/ above. I can't tell whether the actual accuracy really was 80% as results vary statistically.
As an alternative, I could just calculate the number of hits, and then only carry over the hits to other tokens. This, however, doesn't take into account the fact that the beam BBs have jammers and so should the missiles should be less accurate against them.
The fundamental problem is that all the missiles are initially available to kill the chaff, but then if they aren't all needed some of them can be used to target other ships.
I hope I am missing something obvious here. Can anyone see what it is ?
Report message to a moderator
|
|
|
|
|
Missile hit rate vs additional target tokens
By: Staz on Mon, 22 November 2004 08:22
|
|
|
Re: Missile hit rate vs additional target tokens
By: platon79 on Mon, 22 November 2004 08:47
|
|
|
Re: Missile hit rate vs additional target tokens
By: Staz on Mon, 22 November 2004 10:17
|
|
|
Re: Missile hit rate vs additional target tokens
By: iztok on Tue, 23 November 2004 02:49
|
|
|
Re: Missile hit rate vs additional target tokens
By: Staz on Tue, 23 November 2004 05:30
|
|
|
Re: Missile hit rate vs additional target tokens
By: iztok on Tue, 23 November 2004 17:56
|
|
|
Re: Missile hit rate vs additional target tokens
By: multilis on Tue, 23 November 2004 22:11
|
|
|
Re: Missile hit rate vs additional target tokens
By: iztok on Wed, 24 November 2004 07:27
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Wed, 24 November 2004 10:24
|
|
|
Re: Missile hit rate vs additional target tokens
By: iztok on Wed, 24 November 2004 16:26
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: LEit on Fri, 10 March 2006 22:53
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: Staz on Sat, 11 March 2006 04:47
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: LEit on Mon, 13 March 2006 12:56
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Mon, 13 March 2006 14:36
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Tue, 14 March 2006 08:04
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: LEit on Tue, 14 March 2006 11:03
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Tue, 14 March 2006 16:11
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Tue, 14 March 2006 12:30
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Tue, 14 March 2006 15:49
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Wed, 15 March 2006 05:48
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Wed, 15 March 2006 11:12
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Thu, 16 March 2006 04:18
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Thu, 16 March 2006 04:45
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Sat, 11 March 2006 16:12
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: Staz on Sun, 12 March 2006 14:51
|
|
|
Re: Missile hit rate vs additional target tokens
By: multilis on Sun, 12 March 2006 18:41
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: LEit on Mon, 13 March 2006 12:52
|
|
|
Re: Missile hit rate vs additional target tokens
By: LEit on Thu, 16 March 2006 19:53
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Fri, 17 March 2006 02:18
|
|
|
Re: Missile hit rate vs additional target tokens
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Fri, 17 March 2006 06:16
|
|
|
Re: Missile hit rate vs additional target tokens
By: crr65536 on Sun, 19 March 2006 14:27
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Sun, 19 March 2006 15:22
|
|
|
Re: Missile hit rate vs additional target tokens
By: Sr.Seven on Sun, 19 March 2006 16:50
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Sun, 19 March 2006 18:52
|
|
|
Re: Missile hit rate vs additional target tokens
By: Sr.Seven on Sun, 19 March 2006 23:37
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Mon, 20 March 2006 03:25
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Mon, 20 March 2006 05:46
|
|
|
Re: Missile hit rate vs additional target tokens
By: JasonC on Tue, 08 August 2006 09:10
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Wed, 09 August 2006 08:45
|
|
|
Re: Missile hit rate vs additional target tokens
By: Kotk on Sat, 12 August 2006 20:21
|
|
|
Re: Missile hit rate vs additional target tokens
By: tgellan on Mon, 14 August 2006 04:44
|
|
|
Re: Missile hit rate vs additional target tokens
By: mazda on Mon, 14 August 2006 06:59
|
|
|
Re: Missile hit rate vs additional target tokens
By: Altruist on Wed, 25 October 2006 20:08
|
Goto Forum:
Current Time: Thu Jun 06 08:58:01 EDT 2024
|