Talk:Guess the number/With feedback

From Rosetta Code

Why draft?

Please sync with: Talk:Guess the number#dupe? (sort of) --Paddy3118 6:06, 29 October 2010 (UTC)

Personally, I think this game is a more interesting game than that one. --Rdm 16:44, 2 November 2010 (UTC)

I feel quite lucky to have found this bit of info. However, I rather be able to compare each of the coded at it's most minimal to process the same randomized fully interactive goal...


Please enter a number between 1 and 100: 50 Your guess was too low. Try again: 75 Your guess was too high. Try again: 60 You guessed correctly in 3 attempt(s)

Play again? y/n n

REXX example


if g>high then do                 
call ser g 'is above the higher limit of' low                 

shouldn't this be high?

--Walterpachl 19:10, 30 June 2012 (UTC)

Yes, corrected to: <lang rexx> if g>high then do

                call ser g 'is above the higher limit of' high

-- Gerard Schildberger 19:30, 1 July 2012 (UTC)

What do we mean by "number"? And must the limits be distinct and inclusive?

I suspect that the task wants integers, but that's not what is actually said. Having to guess 8.5455445362456 is probably not what you want when you ask for a number between 1 and 10. Furthermore, it does not specify that the "set limits" must be unequal or if they're exclusive or inclusive. For example, are we allowed to look for a number between 4 and 4? What about between 4 and 5?

Should I change the task description?--ReeceGoding (talk) 14:08, 1 June 2020 (UTC)

I think yours is the R solution which seems to understand the present task requirement.
There are a lot, (over 100), of other examples, and none marked incorrect.
(There are some tasks that havent't come out of draft status and have a couple or no implementations where the need for rewrite is more immediate).
--Paddy3118 (talk) 09:35, 11 June 2020 (UTC)