•The game starts with choosing six tiles from a set of twenty-four that are shuffled and face down.
•The twenty-four tiles are arranged in to groups: large numbers and small numbers
•The set of large number comprises of four tiles with the numbers 25, 50, 75, 100
•The set of small numbers comprises of twenty tiles with two each of the numbers 1 to 10.
•When the six numbers are selected and revealed a target number is randomly generated in the range of 101 to 999
•The player has thirty seconds to use the six numbers to calculate the target number or get as close as possible. Scoring 10 points for an exact solution, 7 points if within 5 of the target and 5 if within 10 of the target.
Rules for the calculation:
•You can only use each number once but do not have to use all the numbers.
•You can only use the four basic arithmetic operations and at no stage in the calculation can the running total become negative or involve fractions.
-----===##===-----
Example:
The player chooses 1 large number and 5 small numbers and is ‘dealt’ {50, 8, 3, 7, 2, 10}
The target is then generated and given as 556
The player thinks for a bit and enters (((50 - 7) * 3) + 10) * 8 / 2 and scores 10 points
-----===##===-----
So, what can you do with this? You could write a program to allow the user to play the game. Selecting the tiles, generating the target, then getting the user to type in the calculation, parsing the input and checking the result and giving a score.
You could also write a program that solves a given set of numbers…or do both