Hi Everyone, Last week I tried a performance workshop in one of my perl courses, and everyone had a great time - so I'm posting the same challenge here hoping to get the same effect.
The game is a small mastermind I wrote in perl, with an automatic AI solver that plays against himself and solves the game within around 8 guesses. You need to improve the performance of the BPSolver class without changing any line of code from the game .pl file. Here are the rules of the game (from wikipedia): http://en.wikipedia.org/wiki/Mastermind_%28board_game%29 The game .pl file: http://www.ynonperek.com/uploads/bp2.pl The AI solver class: http://www.ynonperek.com/uploads/BPSolver.pm I got around 70% improvements. Of course, I'd love to hear what you did to improve and how well you got. Will post my solution next week. Have a great one, Ynon
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
