Nice, clean, and fun. How about a "quit" command?
# ... print "\nGuess (Q to quit): "; chomp($inp = <>); last if $inp =~ /^[qQ]/; # ...
Just a thought ...
"All you need is ignorance and confidence; then success is sure."-- Mark Twain
In reply to Re: Mastermind Game
by webfiend
in thread Mastermind Game
by YuckFoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |