Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Holiday Brain Teaser
Message
 
 
To
03/01/2003 18:15:13
General information
Forum:
Games
Category:
Trivia
Miscellaneous
Thread ID:
00737246
Message ID:
00737914
Views:
19
>>>>>>>Iif( Mod(NUMBER_TO_REACH,1000) = 0, 1, Mod(Mod(NUMBER_TO_REACH, 1000 ),11 ) )
>>>>>>
>>>>>>I'm not sure, need to think. For 100, it's 1, for 200 it's 2, for 300 it's 3, etc.
>>>>>
>>>>>I think at after 1000 it starts all over again back at 1 again.
>>>>
>>>>Right, but we assumed, that number should be round, e.g. 100, 200, 300. What if it's any integer number greater than 10?
>>>
>>>Actually, I modified the formula to look like.
>>>Iif( Mod(NUMBER_TO_REACH,1000) = 0, Mod( NUMBER_TO_REACH, MAX_CHOICE + 1 ), Mod(Mod(NUMBER_TO_REACH, 1000 ),MAX_CHOICE + 1 ) )
>>>
>>>It turns out that if you get back 0, the first person loses. And that's the case if Mod( NUMBER_TO_REACH, MAX_CHOICE + 1 ) = 0.
>>>
>>>So If
>>>NUMBER_TO_REACH = 20
>>>MAX_CHOICE = 9
>>>
>>>Player 1 will lose.
>>
>>Player 1 says 9 and win. In this game player one will always win as long as number is greate than 11.
>In this example the MAX_CHOICE is the highest number the player can choose so 9 instead of 11 is the max.
>
>1 says 9
>2 says 10
>
>Now whatever player 1 says
>2 says 20 and wins.
>
>1 says 19
>2 says 20 and wins.

The player can say any number from one to 10, 10 included. Otherwise you would be right.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform