D - Tournament

The second part of the homework is the final tournament. The objective is to maximize your total score, that is, the sum of all partial gains from all rounds in all matches (against all other players). There will be 2 tournaments:

You can choose whatever strategy your player will play. The player can appropriately change its strategy during the match.

Evaluation

After the tournament is over (all players played against each other), partial scores from all rounds of all matches are summed up to make the final score of a player. Only qualified players are considered. That is, players not meeting at least the simple player criteria won't be involved in the tournament at all. Next, tournament ranking will be computed using the final scores and the players will be split into 4 groups according to their rank and will be given points accordingly.