J. J. Merelo-Guervós > Algorithm-MasterMind-v0.4.5 > mm-eda.cgi

Download:
Algorithm-MasterMind-v0.4.5.tar.gz

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

mm-eda.cgi - CGI for playing an Mastermind using an Estimation of Distribution Algorithms

SYNOPSIS ^

  http://localhost/cgi-bin/mm-eda.cgi

DESCRIPTION ^

This script uses Algorithm::Mastermind::EDA for playing a basic Mastermind game, with 6 colors and 4 pegs. When called without parameters it shows a form for introducing the secret combination, if called with parameter code it will call the algorithm and produce the solution. It usually takes less than a second, but your mileage may vary depending on the server and Perl version.

INTERFACE ^

Not really intended to be called as a module, but there are a few functions you could use

print_combination( $combination, $response );

Prints combination and response in HTML

solve ($code )

Runs the algorithm for $code

show_form

Shows the form page in absence of code.

form

Actually prints the form part in HTML

SEE ALSO ^

First, you should obviously check, Algorithm::MasterMind, and maybe also "Algorithm::Evolutionary::Op::EDA_step );"

AUTHOR ^

J. J. Merelo, jj (at) merelo.net

Copyright ^

  This file is released under the GPL. See the LICENSE file included in this distribution,
  or go to http://www.fsf.org/licenses/gpl.txt

  CVS Info: $Date: 2012/07/15 07:45:23 $ 
  $Header: /cvsroot/opeal/Algorithm_Mastermind/app/mm-eda.cgi,v 1.2 2012/07/15 07:45:23 jmerelo Exp $ 
  $Author: jmerelo $ 
  $Revision: 1.2 $
syntax highlighting: