*Author

Offline DemagogTopic starter

  • Legendary Member
  • ******
  • Posts: 2557
  • Reputation Power: 40
  • Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.
  • New to Elements
How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg72576#msg72576
« on: May 21, 2010, 08:11:15 pm »
So let's say you have two quanta pools and you want to play an SoG (let's call them life and fire because they are short and easy to type). So, are the two quantums that will be spent dependent or independent of each other? In the case of the former, you would have a 1/3 chance of losing two life quanta, a 1/3 chance of losing two fire quanta, and a 1/3 chance of losing one of both. As for the latter, you would have a 1/4 chance of losing two fire quanta, a 1/4 chance of losing two life quanta, and a 1/2 chance of losing one from both. I'm pretty sure I used the words dependent and independent correctly. There are much more complicated examples of this, for instance more quanta pools, higher random cost, and gaining quanta instead of losing quanta (quantum pillars).

PuppyChow

  • Guest
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg73074#msg73074
« Reply #1 on: May 22, 2010, 07:06:53 pm »
I'm fairly certain it's independent, just because dependent would be much harder to program for something that really is only a minor point in the game.

With dependent, you would have to make an algorithm to get every possible combination of elements for the random quanta. For instance, a sod, out of quantum pools A, B, and C.
-AAA
-ABB
-ACC
-ABC
-BBB
-BAA
-BCC
-CAA
-CBB
-CCC
I think that's it. With quanta from all 12 pools, it would be TONS of possibilities (I don't feel like calculating the exact number).

So what seems easier to program? Take one random quantum, then take another, then take another?
Or make an array with EVERY possible combination (making an algorithm to do this would be pretty hard in itself... I'm not entirely sure how I would do it), and then choose a random combination out of that array?

Ashebrethafe

  • Guest
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg73082#msg73082
« Reply #2 on: May 22, 2010, 07:16:47 pm »
Dependent vs. independent is only half the question. Do you already know the quanta are picked from a set, not a bag? (You seem to be assuming that you have the same chance of losing two life quanta as two fire quanta, if you have at least two of each.)

I haven't heard anything definitive about how random quanta work, but I always assumed it was independent, bag for consumption, and set for production -- that if you have 4 life and 2 fire, you have a 2/5 chance of losing 2 life, a 1/15 chance of losing 2 fire, and an 8/15 chance of losing 1 of each; and regardless of what quanta you already have, each of your quantum pillars has a 1/1,728 chance of producing 3 life, a 1/576 chance of producing 2 life and 1 fire, and a 1/288 chance of producing 1 life, 1 fire, and 1 time (and likewise for each of the 11 other elements, 132 ordered pairs of elements, and 220 unordered triples).

Offline plastiqe

  • Hero Member
  • *****
  • Posts: 1749
  • Country: ca
  • Reputation Power: 0
  • plastiqe hides under a Cloak.
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg73084#msg73084
« Reply #3 on: May 22, 2010, 07:17:55 pm »
Random quanta is random?  : )

Offline teffy

  • Hero Member
  • *****
  • Posts: 1689
  • Country: de
  • Reputation Power: 20
  • teffy is a Mummy waiting to discover the path to glory.teffy is a Mummy waiting to discover the path to glory.teffy is a Mummy waiting to discover the path to glory.teffy is a Mummy waiting to discover the path to glory.
  • May the oracle be with you
  • Awards: Slice of Elements 15th Birthday CakeSlice of Elements 14th Birthday CakeSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday CakeWeekly Tournament WinnerSlice of Elements 2nd Birthday Cake
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg74989#msg74989
« Reply #4 on: May 26, 2010, 02:17:58 am »
Calculating the number of possabilties is quite simple, It´s the number of possabilities to elect multisets with 3 elements out of a set with 12 elements. (See wikipedia->Multiset) That´s the binomial coefficient (12+3-1,3)= 14!/(11!3!). I think the way the quanta are elected is the same as the way for Devourers and zanz wrote, how that works. Programming that array needs math or tricky if things (what happens if only 2 of a special quanta is available?), I think it´s easier, if the computer only chooses a few random numbers  :D
I`m teffy, here - and Ringat on Kongregate

Offline zanzarino

  • Lead Developer
  • ****************
  • Posts: 420
  • Reputation Power: 496
  • zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.zanzarino is a mythical and divine giver of immortality, one of the Turquoise Nymphs.
  • Once we accept our limits, we go beyond them
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg74992#msg74992
« Reply #5 on: May 26, 2010, 02:26:10 am »
0. Check if there is enough quanta doing the summation of all pool. If yes:

1. Generate a N random number between 1 and 12
2. Is there quanta in the N pool?      Yes: quanta-1          No:GoTo1
3. Enough quanta removed?             Yes: The end            No:GoTo1

Offline DemagogTopic starter

  • Legendary Member
  • ******
  • Posts: 2557
  • Reputation Power: 40
  • Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.Demagog soars like the Phoenix, unable to be repressed.
  • New to Elements
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg74997#msg74997
« Reply #6 on: May 26, 2010, 02:31:01 am »
Awesome. Thanks Zanz. My curiosity is satisfied.

PuppyChow

  • Guest
Re: How is Random Quanta Used? https://elementscommunity.org/forum/index.php?topic=6766.msg75029#msg75029
« Reply #7 on: May 26, 2010, 03:46:47 am »
*Gloats that he was right*

 

anything
blarg: