>>>>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.
I changed the game a little so that you could change the MAX_CHOICE. In your game it is 10. In the game above I changed it to 9.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only