My friend posed this question to me which he was unsure if there was a solution (it was an intervew question I think):
It went along the lines of:
The game is the following: You are player $1$ and you are versing another person player $2$. You and player $2$ choose any integer from $1$ to $30$. A $30$ sided die is rolled and whoever's number is the closest to the die's number is the "winner" of the game and gains points according to what they guessed.
e.g. Player $1$ picks number $20$ and player $2$ picks number $15$.
The die lands on the number $18$ so player $1$ wins and gets $20$ points.
(Note that you can choose whether or not to go first or second in picking a number (you will know the other player's number if you go second)).
What is the optimal strategy for this game? (Optimal wasn't really defined from my friend, but I assume it is something like "highest number of points" by the $n$'th round)?
I'll also use the names Alice and Bob, with Alice going first.
I'll assume that at the end of each round, the losing player pays the winning player a dollar amount equal to the winning player's score for that round.
For simplicity, I'll assume no score is awarded if Alice and Bob choose numbers which are equally close to the value of the roll.
Also, I'll assume the rules require Bob to choose a number other than the one already chosen by Alice.
Claim: Alice has the advantage and should always choose $16$.
Alice is trying to maximize not her expected score, but rather, the expected value of her score minus Bob's score.
With Alice choosing $16$, Bob's optimal reply is $15$, but for those choices, the expected value of Alice's score minus Bob's score is $+0.5$, so Alice will win more points, on average, than Bob.
If Alice chooses any number other than $16$, Bob has a reply which can force the expected value of Alice's score minus Bob's score to be negative, so in those cases, Bob will win more points, on average, than Alice.
If Alice chooses $16$, and Bob chooses any number other than $15$, the expected value of Alice's score minus Bob's score will be greater than $0.5$, so Bob's best choice is $15$, since it minimizes Bob's expected loss.
Optimal strategies for Bob:
If Alice chooses $k$ with $k < 16$, Bob's best reply is $31-k$, which yields a positive expectation for Bob.
If Alice chooses $k$ with $k > 16$, Bob's best reply is $k-1$, which yields a positive expectation for Bob.
Finally, if Alice chooses $16$, all choices by Bob yield a negative expectation for Bob, but to minimize the expected loss, Bob should choose $15$.
Bottom line: You want to be Alice!