This is a very popular game in japan, and yes if the answer is wrong they lose, if right they are asked if the want to continue, usually this means a bigger payoff.
Might consider adding:
if ($guess was right) { continue(); } else { exit; } sub continue() { ask user to enter y or n read in answer chomp answer lowercase input #or uppercase I just like lower default input to n unless it is y or n #or y if you were a real hu +ssler return answer }
Yes my pseudo code has code in it, just the way I code :). Didn't read merlyn post before posting, so this was not meant as an opinion. My opinion on that is merely that this post asked for pseudo code so I gave pseudo code. Thought this was both because I really don't know who to do this, and I'm just weird.
Update: changed last statment
"Pain is weakness leaving the body, I find myself in pain everyday" -me
In reply to Re: Re: Pseudo code planning
by kutsu
in thread Pseduo code planning
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |