Backward induction from the endpoint
In any sequential situation, reason forward but decide backward: start from the final move, determine what each player will choose there, and use that to solve the move before it, working back to the present. Your best current choice depends not on where you are but on anticipating every rational response that will follow.
