i recently was introduced to a good game.
First, you need to roll the 5 dice and then someone gives you a target number.
The objective is to come up with a set of mathematical operations (+,-,x,/) that would compute the target number.
Each of the 5 dice must be used once and only once.
There's no strict rule for the mathematical operations (u can either repeatedly use any of them or not at all)
say u roll the dice, and u get these numbers (4 3 1 6 6) and the target number is 12.
then you would probably say : 4 * 3 * 1 * (6 / 6) = 12
The game is simple and we all should have played similar ones when we were younger.
My question is... Is there an algorithm that would come up with that set of operators?