Art Of Programming

musings by Dmytrii Nagirniak

Petals Around the Rose

My old good friend sent me a small riddle yesterday. Honestly saying after couple of minutes I was ready to give up.

But then something clicked: the name of the game is important. And I had seen the answer.

Anyway I decided to repeat it and implement it for everybody’s pleasure.

Basically you have some dices on the desk and should guess (calculate) the number. The most important thing are:

  1. The name of the game is Petals Around the Rose.
  2. The answer is always even.
  3. The answer is always available for any particular throw.

Train yourself with my online dices-desk.

Comments