Talk:Guess the number: Difference between revisions
(→Language: new section) |
|||
Line 7: | Line 7: | ||
== How about a modification to turn it into more of a game? == |
== How about a modification to turn it into more of a game? == |
||
The computer could give the bounds, select a target, ask for a guess, but then tell .... I see a new task coming on: [[Guess the number/With Feedback]] :-)<br> --[[User:Paddy3118|Paddy3118]] 06:02, 29 October 2010 (UTC) |
The computer could give the bounds, select a target, ask for a guess, but then tell .... I see a new task coming on: [[Guess the number/With Feedback]] :-)<br> --[[User:Paddy3118|Paddy3118]] 06:02, 29 October 2010 (UTC) |
||
== Language == |
|||
Suggest removing the explicit invokation of 'conditional loop', as some languages' syntax don't use that syntax. (I'm thinking of logic languages and, I think, functional languages.) A more precise description might be, "The program randomly chooses a number [1-10]. The program then keeps asking the user to guess what that number is until the user inputs that number as their guess." --[[User:Short Circuit|Michael Mol]] 14:32, 29 October 2010 (UTC) |
Revision as of 14:32, 29 October 2010
I think you really get the most pleasing message sequence when using techniques from Loops/N plus one half, except that instead of a fixed limit, you have a dynamic one. –Donal Fellows 21:15, 28 October 2010 (UTC)
dupe? (sort of)
I think this task is already covered in Bulls and Cows, but with more functionality. Could this be a dupe? --Mwn3d 21:26, 28 October 2010 (UTC)
How about a modification to turn it into more of a game?
The computer could give the bounds, select a target, ask for a guess, but then tell .... I see a new task coming on: Guess the number/With Feedback :-)
--Paddy3118 06:02, 29 October 2010 (UTC)
Language
Suggest removing the explicit invokation of 'conditional loop', as some languages' syntax don't use that syntax. (I'm thinking of logic languages and, I think, functional languages.) A more precise description might be, "The program randomly chooses a number [1-10]. The program then keeps asking the user to guess what that number is until the user inputs that number as their guess." --Michael Mol 14:32, 29 October 2010 (UTC)