Petals around the Rose

BrooklynKnight said:
Well, without that mathematical method, the program couldnt be written.

Think about it this is how the game works

[sblock]
You count the amount of dots around the center dot. Center dots only appear on an ODD face. Thus, simply, for an odd face, you count the dots, and subtract 1 (the center dot). On an even face, you have no center dot, thus no rose, thus no petals AROUND a rose, so its automatically zero!
[/sblock]
You actually could write the program without using a mathmatical process
[sblock]
one = zero
two = zero
three = 2
etc. then have the program add em up, but your way is much more efficient.[/sblock]
 

log in or register to remove this ad



Queen_Dopplepopolis said:
I, for one, was assuming it was a math problem of sorts. As such, I spent a lot of time adding, multiplying, etc... I wasn't thinking that it was a word riddle with a bit of counting mixed in. So - what makes it difficult and challenging is the over-analysis.


Ah. I guess it depends if you're image or text oriented.
 

When you're down with the riddle, I suggest you follow the link at the bottom of the page and find the story about when Bill Gates was introduced to it (waaaay back when). It's an interesting read.

AR
 

Remove ads

Top