Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
When they load game.pl it'll say "welcome to the game." or whatever the first time and a few lines down will present a question for them to answer.
If the question is wrong, it says it's wrong and counts up to X (after which if they reach X wrong guesses it'll tell them the answer and will post a new question).
If they get the answer right, it'll have a nice message and then will move on to the next question.
I have the questions and answers setup and I know how to count bad guesses. I don't know how to setup the rotation where once the program starts, it won't quit until they say "quit" and will continually move on from one question to the next.
Does anyone have psuedo code that could help me with the general setup of this structure?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setup of a small perl game
by tlm (Prior) on Apr 11, 2005 at 22:56 UTC | |
by Anonymous Monk on Apr 12, 2005 at 03:29 UTC | |
by tlm (Prior) on Apr 12, 2005 at 03:53 UTC | |
by Anonymous Monk on Apr 12, 2005 at 04:10 UTC | |
by tlm (Prior) on Apr 12, 2005 at 04:17 UTC | |
| |
|
Re: setup of a small perl game
by nedals (Deacon) on Apr 12, 2005 at 01:07 UTC | |
|
Re: setup of a small perl game
by Anonymous Monk on Apr 12, 2005 at 14:21 UTC | |
|
Re: setup of a small perl game
by TedPride (Priest) on Apr 12, 2005 at 09:04 UTC |