Announcement

Collapse
No announcement yet.

Hit Points and Firepower

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    DaveV: It's a nice little program, but it would be better still if it allowed you to enter ALL the modifiers (city walls, defensive terrain, fortified, etc). Kind of a shock seeing that old Win31 design again! I'm still holding out hope for a comprehensive Battle Odds spreadsheet (a standalone program would be ultra cool).

    CyberChrist: So next time I'm launching an amphibious assault all I have to do is sail my carrier up next to the city and fire away with bombers? And his fighter defenses are toast? Sneaky, sneaky!!!

    To La Fayette, as fine a gentleman as ever trod the Halls of Apolyton

    From what I understand of that Civ game of yours, it's all about launching one's own spaceship before the others do. So this is no big news after all: my father just beat you all to the stars once more. - Philippe Baise

    Comment


    • #32
      quote:

      Originally posted by Captain Nemo on 03-05-2001 08:43 PM
      I agree that I did not take into account the special defense/attack bonus related to shore bombardment/ships caught in port/2x defense/air defense etc...


      I tested Dave's formula using your Battleship vs. Mech. Inf. example. The Battleships won 20 out of 20 and sustained an average of 10 damage. Following this I changed the Battleship's firepower to 1 (form 2) and re-ran the test. The results of the second test were the same except the Battleships sustained an average of 11 damage.

      According to the book, ships engaged in shore bombardment have their firepower reduced to 1. I think we can conclude that this much is true.

      quote:

      Where does this .125 come in? Does it just give the defender the victory when there is a tied die roll? If it truly is designed as a die roll are we talking about a 6 sided die? As in Roll A (1-6) x a > Roll D (1-6) x d for the attacker to win? This would give the 1a vs 1d battle a 21-to-15 edge to the defender but not 80-20?


      .125 comes from the a tieing result of an 8 sided dice.

      Comment


      • #33
        I ran a number of combat tests to determine if the above formulas are correct. Since I ran each combat 200 times and averaged the damage sustained by the victor and the number of times each side won I can tell you that (a)/(a+d+0.125) only works when a=d. As soon as a and d diverge the odds become heavily weighted towards the unit with the higher stat.

        After a little additional analysis I came up with this formula:

        Odds= Max(2a-d,a)/(Max(2d-a,d)+Max(2a-d,a)+0.125)
        When I apply this number to the binomial distribution formula the results come out right on the money including the damage numbers.

        This amounts to giving the better unit an extra bonus equal to it's advantage over the weaker unit, for example a 6a attacking a 1d unit is really equivalent to an 11a unit attacking a 1d unit.

        One of my tests had 15a,2f,2h attacking 9d,2f,2h and the 15a units were basically never loosing when they should have lost 15% of the time.

        I tried the reverse with 2a,1f,1h attacking 4d,1f,1h and the 4d were also doing much better than the stats showed. I expected them to loose about 5% of the time in the test they only lost once in 200 tries or 0.5% which is too much of a swing to be explained away.

        I am not 100% sure that this is it but I am pretty sure the simpler formula is not correct


        Comment


        • #34
          I think the Unified Field Theory is simpler!
          Tecumseh's Village, Home of Fine Civilization Scenarios

          www.tecumseh.150m.com

          Comment


          • #35
            Eight side die? Does this mean there is a Dungeons & Dragons influence on CIV II?
            "Cease fire! Please! Cease fire. What a dreadful waste of ammunition!" -- General Horatio Herbert Kitchener
            --

            Comment


            • #36
              It's not really an 8-sided die; it's an n-sided die, where n is AF*8 for the attacker, DF*8 for the defender. AF is attack times any bonuses; DF is defense times any bonuses. The attacker and defender each rolls his die; if there's a tie, the defender wins (thus the -.125 for the attacker and +.125 for the defender).

              Kull - I think Mark's program requires the user to calculate all of the bonuses before running the program. I agree that something like a spreadsheet would be a good way to show all the special cases.

              Comment


              • #37
                quote:

                Originally posted by Captain Nemo on 03-05-2001 11:45 PM
                After a little additional analysis I came up with this formula:

                Odds= Max(2a-d,a)/(Max(2d-a,d)+Max(2a-d,a)+0.125)

                I am not 100% sure that this is it but I am pretty sure the simpler formula is not correct


                That formula looks like a winner to me! Your a genius, Nemo!

                How would you setup the binomial distribution formula so that the results include the damage numbers?

                Comment


                • #38
                  quote:

                  Originally posted by Kull on 03-05-2001 09:01 PM
                  So next time I'm launching an amphibious assault all I have to do is sail my carrier up next to the city and fire away with bombers? And his fighter defenses are toast? Sneaky, sneaky!!!


                  Ah no, that was not what I was trying to say.
                  Any air unit with the inherit ability to stay in the air for only 1 turn, will have its DF increased to x4 the normal DF value when defending a city against attacks from air units, with the inherit ability to stay in the air for 2 or more turns.
                  How long the attacking units have actually stayed in the air should not matter, it is the inherit ability of the units that determine this.

                  There is still a great advantage from attacking with bombers from a carrier anchored right outside the city though. The bombers can attack every turn - if they survive their attacks of course

                  Comment


                  • #39
                    quote:

                    Originally posted by William Keenan on 03-06-2001 12:39 PM
                    The range of an air unit has nothing to do with the x4 on city defence. Any unit air or ground (not tested with naval) will get the x4 bounus defending a city if it has the fighter flag (can attack air units) turned on.




                    The voice of reason!

                    Comment


                    • #40
                      Duh! I read "turns in the air" as "moves in the air".

                      Still, the multiple attacks by Bomber is interesting. That may explain some of Xin Yu's success as Japan in the first 2194 Days PBEM game!
                      To La Fayette, as fine a gentleman as ever trod the Halls of Apolyton

                      From what I understand of that Civ game of yours, it's all about launching one's own spaceship before the others do. So this is no big news after all: my father just beat you all to the stars once more. - Philippe Baise

                      Comment


                      • #41
                        DP (This is what happens when you work with 2 PCs at the same time....keeping track of which keyboard is which gets problematic!)
                        [This message has been edited by Kull (edited March 06, 2001).]
                        To La Fayette, as fine a gentleman as ever trod the Halls of Apolyton

                        From what I understand of that Civ game of yours, it's all about launching one's own spaceship before the others do. So this is no big news after all: my father just beat you all to the stars once more. - Philippe Baise

                        Comment


                        • #42
                          quote:

                          Originally posted by Kull on 03-06-2001 03:32 PM
                          Still, the multiple attacks by Bomber is interesting. That may explain some of Xin Yu's success as Japan in the first 2194 Days PBEM game!

                          A bomber (with range 2 and up) can only attack once per turn. The effect of carriers and airbases (if you move a bomber to a land square and wait for your engineers to finish the airbase before attacking) only allows it to attack EVERY turn instead of coming back to base every once in a while. My success as Japan was due to that I moved my carriers close to the targets before attacking, thus a fighter (not bomber!) could attack multiple times per turn.

                          Comment


                          • #43
                            As to the spreadsheet calculating the odds and damage here is what I did:

                            4 columns for the attacker (aa,ad,af,ah)
                            4 columns for the defender (da,dd,df,dh)

                            (Although ad for the attacker and da for the defender are not used, it makes it easier to copy a unit from the attacker to defender column to see how it fares in the opposite role)

                            Next two columns calculate the "corrected" a and d factors, Ca and Cd based on the difference between aa and dd

                            Ca=Max(2*aa-dd,aa)
                            Cd=Max(2*dd-aa,dd)

                            Next column, the odds of the attacker winning a round:

                            odds=Ca/(Ca+Cd+0.125) (Display in percent)

                            Next the number of rounds won required for Attacker to kill defender:

                            aw=dh*10/af

                            Next the number of rounds won required for Defender to kill Attacker:

                            dw=ah*10/df

                            Next the "BIG" formula the Attacker's odds to win the entire battle:

                            ODDS=BINOMDIST(dw-1,aw+dw-1,1-odds,True)

                            Translates as "odds that Defender wins dw-1 or less rounds out of aw+dw-1 rounds considering that the odds of the defender to win each round are 1-odds" (Changing True to False would change "wins dw-1 or less" to "wins exactly dw-1")

                            Now the average damage sustained by the attacker by the time the defender is dead: aw*(1-odds)/odds * df (odds=odds to win one round)

                            And the average damage sustained by the defender by the time the attacker is dead: dw*odds/(1-odds) * af

                            Of course for the loser of the ODDS equation this number will exceed the unit's hitpoints.

                            This should allow anyone with basic knowledge of EXCEL to reproduce the spreadsheet. I copied the formulas down each column so I can display multiple combats situations simultaneously. I also added a column before the attacker and defender with the respective unit names so I can keep track of what is what.

                            Did I put everyone to sleep?



                            Comment


                            • #44
                              quote:

                              Ah no, that was not what I was trying to say.
                              Any air unit with the inherit ability to stay in the air for only 1 turn, will have its DF increased to x4 the normal DF value when defending a city against attacks from air units, with the inherit ability to stay in the air for 2 or more turns.
                              How long the attacking units have actually stayed in the air should not matter, it is the inherit ability of the units that determine this.


                              The range of an air unit has nothing to do with the x4 on city defence. Any unit air or ground (not tested with naval) will get the x4 bounus defending a city if it has the fighter flag (can attack air units) turned on.

                              Comment


                              • #45
                                Zzzzz ... *** WAKES UP *** ... Great stuff, Nemo!


                                No really, it is great, a huge help. Thanks.

                                Comment

                                Working...
                                X