smootrk
First Post
You actually could write the program without using a mathmatical processBrooklynKnight 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]
[sblock]
one = zero
two = zero
three = 2
etc. then have the program add em up, but your way is much more efficient.[/sblock]