« blib/lib/Games/ABC_Path/Generator/RiddleObj.pm
↑ Summary
blib/lib/Games/ABC_Path/Generator/FinalLayoutObj.pm »
| 1 | package Games::ABC_Path::Generator::App; | ||
| 2 | $Games::ABC_Path::Generator::App::VERSION = '0.6.0'; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Games::ABC_Path::Generator (); | ||
| 7 | |||
| 8 | sub run | ||
| 9 | { | ||
| 10 | STDOUT->autoflush(1); | ||
| 11 | foreach my $seed ( 1 .. 100 ) | ||
| 12 | { | ||
| 13 | |||
| 14 | my $gen = Games::ABC_Path::Generator->new( { seed => $seed, } ); | ||
| 15 | my $riddle = $gen->calc_riddle(); | ||
| 16 | my $riddle_string = $riddle->get_riddle_v1_string; | ||
| 17 | |||
| 18 | printf( "ABC Path Solver Layout Version 1:\n%s", $riddle_string, ); | ||
| 19 | } | ||
| 20 | return; | ||
| 21 | } | ||
| 22 | |||
| 23 | run; | ||
| 24 | |||
| 25 | __END__ |