I am writing a numbers game involving 3 (or 4) die. The person has to make a number (from 1-25 for 3 die, and 1-100 for 4), and get from one end of a board to the other.
For example: Dice 1 = 3, Dice 2 = 5, Dice 3 = 4
Player chooses 60: (3 * 4) * 5
Is there an "easy" way to check this rather than going through all the possible arithmetic combinations? Please bare in mind that I have rusty high-school level mathematics knowledge!
Depending on choices, you have 288 possibilities per set of rolls. But, depending on properties of operations used, you can cut out a lot of duplicates:
$$\begin{eqnarray}3\cdot4\cdot5=3\cdot 5\cdot 4=5\cdot4\cdot3=5\cdot3\cdot4=4\cdot5\cdot3=4\cdot3\cdot5\end{eqnarray}$$ and each of these have 2 parenthesized equivalents. addition with addition, also has these possibilities to eliminate without trying more than 1. etc. subtraction and division don't have as much freedom but they do have some.