Project Euler — Problem 205 Solution

Problem

Peter has nine four-sided (pyra­mi­dal) dice, each with faces num­bered 1, 2, 3, 4.
Col­in has six six-sided (cubic) dice, each with faces num­bered 1, 2, 3, 4, 5, 6.

Peter and Col­in roll their dice and com­pare totals: the high­est total wins. The result is a draw if the totals are equal.

What is the prob­a­bil­i­ty that Pyra­mi­dal Pete beats Cubic Col­in? Give your answer round­ed to sev­en dec­i­mal places in the form 0.abcdefg

Solution