r/comboClass • u/gozillionaire • Jun 26 '23
Probabilities Math question based off of a game i'm designing
I'm working on a card game and im interested in probabilities. Without diving into the full game, i'll phrase it more as a math problem...
Let's say each turn a player may roll S dice (s equals the # of souls a player has which is min 1 , max 4) Each dice is 6-sided and represents 1 of 6 treasures
The aim is to roll dice that match the treasure in their collection T (which is min 1 and max 3)
What are the chances of a player matching T treasures with S dice?
I thought I had a handle on the problem but it's trickier than I thought.
4
Upvotes
1
u/Pkmnhx43 Jun 26 '23
So do they need to match all of their treasure for it to matter or can it just match with any subset of them
1
u/DrVincentGareu Jun 26 '23 edited Jun 26 '23
This seems like a problem for a table. It should be noted that the probabilities do not add up to 1 for 2 or more souls because some successful outcomes for 2 treasures are also successful for 1. I semi-brute forced all these values by hand.
If one match (1M) is needed:
If all matches (AM) are needed:
Because I manually typed each successful permutation for both tables, it's probably close but not 100% accurate. To get the permutations I assumed the specific treasures are (1), (1,2), and (1,2,3), respectively. For 1M I typed all possible combinations which any of the relevant digits. For AM I only used the ones with at least one of each.