Talk:Guess the number/With feedback: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 39: Line 39:
== What do we mean by "number"? ==
== What do we mean by "number"? ==


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. Should I change the task description?
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. Should I change the task description?--[[User:ReeceGoding|ReeceGoding]] ([[User talk:ReeceGoding|talk]]) 14:08, 1 June 2020 (UTC)

Revision as of 14:08, 1 June 2020

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...

GUESS THE NUMBER GAME

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

In REXX

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

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
                iterate
                end</lang> 

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

What do we mean by "number"?

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. Should I change the task description?--ReeceGoding (talk) 14:08, 1 June 2020 (UTC)