Upgrade Disable Compromise

Here you can request new feature you would like to see in game

Re: Upgrade Disable Compromise

Postby Darkas » Tue Oct 25, 2011 9:31 pm

Dude, are you kidding me :P?

I'm kinda over math 101, and mine are consistently correct.

I encourage you to reread my statement, I did write "chance of winning", I know that dice throws are independent, thanks !

If you need the maths, given 47.1, it's 1-(1-0.471)^2*100%.
Same for 7v8, 1-(1-0.274)^2*100%.

The chance of winning the battle with to roll instead of one is definitely 1-(1-p)^2*100%, where p is the probability of winning. If you want more explanation on that, do not hesitate to ask.

The good question however is the "Where does your 47.1/27.4 come from", and the answer is that I computed the probability the other day.

If you want more infos on that, just ask (I basically computed all permutation of 1 to 8 dices, and sum up all the combinations of battle results for each type of combat, and added the possibility to see how bonuses and maluses change that. It's determinist and exact results (in the given precision, which is derived from BigDecimal scale, up to infinity), it's not simulation-based (what I previously did, far easier but less precise and far less efficient)).
Last edited by Darkas on Tue Oct 25, 2011 9:33 pm, edited 1 time in total.
Darkas

 
Posts: 117
Joined: Mon Oct 17, 2011 10:43 pm

Re: Upgrade Disable Compromise

Postby techgump » Tue Oct 25, 2011 9:33 pm

VW is not using 1-8 die.
User avatar
techgump

 
Posts: 1689
Joined: Sat Jul 09, 2011 12:36 am
Location: 3rd planet from a G2V star within the inner rim of the Milky Way galaxy's Orion Arm's Gould Belt

Re: Upgrade Disable Compromise

Postby Darkas » Tue Oct 25, 2011 9:34 pm

Can you read before react ?

1 to 8 dices, I know it's D6. But you can have up to 8 units =)
Darkas

 
Posts: 117
Joined: Mon Oct 17, 2011 10:43 pm

Re: Upgrade Disable Compromise

Postby techgump » Tue Oct 25, 2011 9:36 pm

I basically computed all permutation of 1 to 8 dices


You words.

If you want more infos on that, just ask


my question, as I did ask:
1. where does "47.1%" come from too?


No need to get overly defensive here.
User avatar
techgump

 
Posts: 1689
Joined: Sat Jul 09, 2011 12:36 am
Location: 3rd planet from a G2V star within the inner rim of the Milky Way galaxy's Orion Arm's Gould Belt

Re: Upgrade Disable Compromise

Postby techgump » Tue Oct 25, 2011 9:38 pm

Mind posting your math computations for us to see. Txs.

The chance of winning the battle with to roll instead of one is definitely 1-(1-p)^2*100%, where p is the probability of winning. If you want more explanation on that, do not hesitate to ask.

Sure please explain where this comes from.
User avatar
techgump

 
Posts: 1689
Joined: Sat Jul 09, 2011 12:36 am
Location: 3rd planet from a G2V star within the inner rim of the Milky Way galaxy's Orion Arm's Gould Belt

Re: Upgrade Disable Compromise

Postby techgump » Tue Oct 25, 2011 9:44 pm

Some info on law of averages, as mentioned in the previous link I provided regarding dice odds.
http://en.wikipedia.org/wiki/Law_of_averages
User avatar
techgump

 
Posts: 1689
Joined: Sat Jul 09, 2011 12:36 am
Location: 3rd planet from a G2V star within the inner rim of the Milky Way galaxy's Orion Arm's Gould Belt

Re: Upgrade Disable Compromise

Postby Darkas » Tue Oct 25, 2011 9:51 pm

You should stop stating things you obviously don't know using some random wiki links, no offense.

If you want some start here.

It's very easy to actually compute it:

The chance of winning a battle is 1 - the chance of losing it.

You have to lose both fight to lose the combat, in other word the defender have to win both fights.

If your chance of winning is p, the defender's are 1-p. So for him to win both is (1-p)*(1-p)=(1-p)^2

Therefore the chance that you win is 1-(1-p)^2, times 100% if you want percent units.

For the other question, it's easy to do (inefficiency) like that:

Code: Select all
def computeBruteforceTables(): Unit = {
    for (k <- 0 until 6) {
      for (l <- 0 until 6) {
        for (m <- 0 until 6) {
          for (n <- 0 until 6) {
            for (o <- 0 until 6) {
              for (p <- 0 until 6) {
                for (q <- 0 until 6) {
                  for (r <- 0 until 6) {
                    if (k == 0) {
                      if (l == 0) {
                        if (m == 0) {
                          if (n == 0) {
                            if (o == 0) {
                              if (p == 0) {
                                if (q == 0) {
                                  array1(r) += 1
                                }
                                array2(q + r) += 1
                              }
                              array3(p + q + r) += 1
                            }
                            array4(o + p + q + r) += 1
                          }
                          array5(n + o + p + q + r) += 1
                        }
                        array6(m + n + o + p + q + r) += 1
                      }
                      array7(l + m + n + o + p + q + r) += 1
                    }
                    array8(k + l + m + n + o + p + q + r) += 1
                  }
                }
              }
            }
          }
        }
      }
    }


The harder part is actually what follows =)
Darkas

 
Posts: 117
Joined: Mon Oct 17, 2011 10:43 pm

Re: Upgrade Disable Compromise

Postby techgump » Tue Oct 25, 2011 10:12 pm

You should stop stating things you obviously don't know using some random wiki links, no offense.

This statement does not do anything to prove your point. I am providing references to my point, a typical part of validating a statement. Your dismissal of such makes no sense. I would love to see your references as well.

And like I asked, lets see your math for VW. Not some code byte without relation to computation, where it came from, and not using VW variables. Txs.
User avatar
techgump

 
Posts: 1689
Joined: Sat Jul 09, 2011 12:36 am
Location: 3rd planet from a G2V star within the inner rim of the Milky Way galaxy's Orion Arm's Gould Belt

Re: Upgrade Disable Compromise

Postby Lopdo » Tue Oct 25, 2011 10:15 pm

heh, when he shows you his math, you ask him to explain it, when he explains it, you ask him to show you some math.
I suspect that his references could be found in university degree of some sort

You don't have to use specific variables to prove your point but I must admit code he posted is useless for almost everyone here
Quis custodiet ipsos custodes?

- Feel free to correct all my grammar mistakes -
User avatar
Lopdo
Site Admin
 
Posts: 2691
Joined: Sat May 28, 2011 3:14 pm

Re: Upgrade Disable Compromise

Postby Darkas » Tue Oct 25, 2011 10:31 pm

The "bytecode" which is actually some highlevel stuff, but whatever, is just 8 for loop going from 0 to 5 and filling some array, which is kinda easy to read "approximately" if you're some knowledge in applied math/computer science.

You asked me:
I basically computed all permutation of 1 to 8 dices
You words.


I just give you a little bit more than words, but yeah, can't do more.

---

I thing what I said is clear, maybe some other people could answer to this, the only thing I can do is to recommend to reread my posts.


---

techgump wrote:And like I asked, lets see your math for VW. Not some code byte without relation to computation, where it came from, and not using VW variables. Txs.


Are you talking about the reroll thing, or the plain probability of winning a fight?
Darkas

 
Posts: 117
Joined: Mon Oct 17, 2011 10:43 pm

PreviousNext

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 4 guests