in reply to Puzzle

Thanks for posting the game. Honestly, I've never had the patience to work through one of those slider games. But it's fun to see the game presented in Perl.

I did want to contribute a few suggestions that might both improve the game as well as your code overall. You'll find that to implement my suggestions probably means a complete rewrite. But if you take a few of these suggestions with you to your next project you'll end up with cleaner, more robust, easier to handle code.

There are probably other things to discuss, but these are the ones that jumped out at me first. Again, I'm not trying to criticize your code. I think it's a fun implementation of a well known game. I just offer these tips so that you might have an easier time of making a more robust program next time around. I'm no expert myself. But as someone who was at the level of your code not too long ago, I just wanted to help point you in the right direction in tackling the learning curve.

Keep up the good work. As long as we're all learning all of our efforts are worthwhile. Keep having fun with it.

Dave

"If I had my life to do over again, I'd be a plumber." -- Albert Einstein

Replies are listed 'Best First'.
Re: Re: Puzzle
by Anonymous Monk on Sep 18, 2003 at 11:51 UTC
    Thanks for the great advice.