Several mobile strategy games like Clash of Clans present this problem when raiding. You can skip to the next base or raid the current base.
Numberphile did a nice presentation of this problem and a solution here: https://www.youtube.com/watch?v=ZWib5olGbQ0