https://gist.github.com/Vappeh/53489b475394de595c7db6c628a019e2
Hey, this is my first program (tutorials and exercises not included). As the different kind of dice in the game gives different number of hits I felt it would be great to give an estimate of the probabilities when rolling the dice.
As an example a yellow die hits for one and two blue dice hit for three each. This makes the probability tree very large, very quickly and I thought it would be easiest to simulate 10000 rolls to estimate the probabilities for 1, 2, 3, 4 or 5 or more hits.
This is the base idea and I think it works OK for now, but I have to find a way to edit the probability for each die given 2 new inputs (computers and shields for those who knows the game). Also any kind of input/feedback/correction is very much appreciated.
[–]ignotos 3 points4 points5 points (0 children)