The project to be completed is programming a simplified version of the dice game "shut the box".
Eight boxes (from 1 to 8) are numbered.
In each round, players 1 and 2 play in succession. The player rolls two dice and calculates the sum of the rolled numbers. Now he has to choose a combination of two open boxes, the sum of which is equal to the rolled sum. For example, if he rolled 4 + 4 = 8 with the two dice, he can close boxes 1 and 7 (because 1 + 7 = 8) if they are still open. Afterwards the selected boxes are closed. If such a choice of the boxes is not possible, then the player is credited the sum of all still open boxes to his points account. An automatic check of all possibilities to determine if there is at least one valid combination is not necessary.
In total, eight rounds are played. In a round, both players are on the turn. The player with the fewest points wins the game. If a player manages to close the last box before the end of the eight rounds, he immediately wins the game, regardless of the previous points.
The method dice () from MiniJava returns the result of a cube dice. Use this method to simulate a dice. Use readInt () from MiniJava to read integers. Use the method outputBoxes (boolean  boxes) to output which boxes are still open.
If the player is to enter a combination for the diced number, the prompt is repeated if the sum of the entry is incorrect or the box for that number is already closed. If the player believes that there is no valid combination, he can count the points by entering 0 and then it's the other player's turn. Both cases are only checked after entering both boxes. If one of the two entries is 0, the points will be counted.
The output format can be seen in the example versions, as well as the last issue, of course, a "draw!" give (see attached file).
Do not implement any other classes or methods for this task. Only arrays, basic types and strings are allowed as data types, as imports only packages from java.lang. *.