3 ms·
That was actually the problem that first got me interested in math. The whole "roll several dice, take the top n" was a common trick we used in D&D games, and
by btilly 17y ago
That was actually the problem that first got me interested in math. The whole "roll several dice, take the top n" was a common trick we used in D&D games, and I wanted to know what the odds were of getting different outcomes, and how it varied by number of dice. I actually worked out the 4 dice version by hand before trying to get smarter about it. And eventually did.
So when I saw Project Euler I dusted off the problem, and tried to set up a variant that was about the right level of difficulty for a Project Euler problem. :-)
- jacobolus 17y agoA really tricky dice problem is calculating Risk odds, once an attack needs to go through several countries, potentially from multiple starting points. The whole distribution of possible outcomes must be considered, to best figure out the trade-offs in attacking. :-)