Your task is making number zero from natural numbers in range [1, 9] by performing 4 mathematical operations: addition, subtraction, multiplication and modulo. For all operations, if the result is not in range [0, 9], we will take its modulo 10. For example:
6 + 4 = 10 MOD 10 = 0
9 + 8 = 17 MOD 10 = 7
3 - 3 = 0
5 - 2 = 3
2 - 5 = -7 MOD 10 = 3
4 × 5 = 20 MOD 10 = 0
7 × 8 = 56 MOD 10 = 6
8 : 2 = 8 MOD 2 = 0
7 : 3 = 7 MOD 3 = 1
You can perform an operation if and only if there are two big balls in one line (vertical or horizontal). The more quickly you perform operations, the more points youll get. In each turn you can make at most 2 operations. The small balls will become big balls in next turn.
In multiplayer game, if you create the match, you have to choose the number of points needed to win the game. There are 4 of them: ANY, 50, 100, 200. For last 3 ones, game will end if one player reach that number of points. In all cases, game will end if new balls can not be generated.
Each player can perform at most 2 operations in his turn. You will be rewarded 5 points if your opponent can not perform at least one operation in his turn (except the first one).