The game of Tic-Tac-Deal 2.0 has a 3-by-3 square grid with the numbers 3 through 11, arranged as follows:
3 4 5
6 7 8
9 10 11
You start by rolling a standard pair of six-sided dice and add the two numbers rolled. You place an X on the board on the square that contains the sum. If the sum is a 2 or 12, your roll is wasted.
If you have exactly three rolls of the dice, what are your chances of getting three Xs in a row (either horizontally, vertically, or diagonally)?
There are 8 wins :
To achieve their respective dice rolls, 3 & 11 have 2 ways, 4 & 10 have 3 ways, 5 & 9 have 4 ways, and 6 & 8 have 5 ways.
There are 6 ways to order 3 different sums.
Here are the probabilities to achieve wins :
$\frac{2}{36} \times \frac{3}{36} \times \frac{4}{36} \times 6 \times 2 = \boxed{\dfrac{288}{36^3}}$
$\frac{5}{36} \times \frac{6}{36} \times \frac{5}{36} \times 6 = \boxed{\dfrac{900}{36^3}}$
$\frac{2}{36} \times \frac{5}{36} \times \frac{4}{36} \times 6 \times 2 = \boxed{\dfrac{480}{36^3}}$
$\frac{3}{36} \times \frac{6}{36} \times \frac{3}{36} \times 6 = \boxed{\dfrac{324}{36^3}}$
$\frac{2}{36} \times \frac{6}{36} \times \frac{2}{36} \times 6 = \boxed{\dfrac{144}{36^3}}$
$\frac{4}{36} \times \frac{6}{36} \times \frac{4}{36} \times 6 = \boxed{\dfrac{576}{36^3}}$
In the actual game, you get five rolls instead of three. But as with rolling a 2 or 12, rolling a number that you have already rolled is a wasted turn.
With five rolls of the dice, what are your chances of getting three Xs in a row, either horizontally, vertically, or diagonally?
I wrote code that did the following :