Let's image that we have a table and 100 cards on it. One card has two sides: on the first hidden side there is a number, from 1 to 100, and on the other side there is nothing. All cards are arranged sequentially in random order. A player can take a card and ask a friend to compare the number from this card with the number from any other card. A friend can answer which one has the greater number written on it. The player never has the right to look at the number on the card. The player must choose one of the cards. The player can take a card only at the moment of taking, it is impossible to go back and compare with the future ones. The player chooses the final card on which the number N is written. If the number N is 100, then the player gets 20 for the whole game. If the number N is 98, then the player gets 50 for the whole game. If the number N is 96, then the player gets 100 for the whole game. For all other numbers, the player gets 0 points. The player also has the right not to choose any card, then the player gets 10 points for the game.
What algorithm can you suggest in which a player can get the highest average value of final points for a certain number of such games?