In Yoga philosophy we call it exactly that. A Lila (Leela), meaning a divine game. While God the omnipotent knows His plans, He is nevertheless constantly changing and shaping His plans on the journey of Self-Transcendence.
What rule can I apply? Only recently I was reminded of my teachers instructions: Prayer, meditation and ceaseless self-giving, only to the Supreme in humanity.
When we can truly see it as a game, it becomes less painful. Still, this requires a one-pointed devotion and ceaseless love of God, accompanied by an unshakable faith. So in this Lila, I try to accept, offer gratitude, and strife to offer myself as an instrument in the hands of Something Higher. Naturally this perfection-road is very long, but it is richly rewarding. Hope this helps. Happy Easter!!