Re: help needed on inputting - tearing hair out .. please!!!
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Mon, 28 Nov 2005 22:59:56 GMT
"patrick_woflian" <gingercrock@xxxxxxxxxxx> wrote in message
news:1133218389.092549.289920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> well.. i dont know how wrong my code is.. but i desparetly need help
> hehe.. the psuecode solution is as follows:
>
> Roll a 12 sided die to choose a number in the range 1....12
> while the user has not made an incorrect guess
> ask the user to guess whether they think the next number will be higher
> or lower than the current number
> prompt the user to enter either "hi" or "lo"
> choose a new random number by rolling a 12 sided die
> if the users guess was correct
> increment a count of correct guesses
> update the stroed current number
> end if
> end while
> the game is over - tell the user how many correct guesses they made..
>
> any ideas how to change my program!?!?
I noticed that in your pseudo code, it sounds like you only ever ask the
user for a number once (not sure though, because the "while the user has not
made an incorrect guess" part is a bit vague to me). If that's the case, you
should really re-evaluate why in your Java code you're asking the user for a
number twice.
- Oliver
.
- References:
- help needed on inputting - tearing hair out .. please!!!
- From: patrick_woflian
- Re: help needed on inputting - tearing hair out .. please!!!
- From: Michael Redlich
- Re: help needed on inputting - tearing hair out .. please!!!
- From: patrick_woflian
- Re: help needed on inputting - tearing hair out .. please!!!
- From: Oliver Wong
- Re: help needed on inputting - tearing hair out .. please!!!
- From: patrick_woflian
- help needed on inputting - tearing hair out .. please!!!
- Prev by Date: Re: help needed on inputting - tearing hair out .. please!!!
- Next by Date: Re: Capturing sound over SB (What you hear)
- Previous by thread: Re: help needed on inputting - tearing hair out .. please!!!
- Next by thread: Capturing sound over SB (What you hear)
- Index(es):
Relevant Pages
|
|