Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Games::Maze 1.03

    Download button

    No screenshots available
    Downloads: 321  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.0/5)
    8 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    John M. Gamble | More programs
    Perl Artistic License / FREE
    January 28th, 2008, 12:26 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Games::Maze description

    Games::Maze is a Perl module used to create Mazes as Objects.

    Games::Maze is a Perl module used to create Mazes as Objects.

    SYNOPSIS

    use Games::Maze;

    $m1 = Games::Maze->new();
    $m2 = Games::Maze->new(dimensions => [12,7,2]);
    $m3 = Games::Maze->new(dimensions => [12,7,2],
    cell => 'Hex');

    $m1->make();
    $m1->solve();
    print $m1->to_ascii();
    print $m1->to_hex_dump();

    %maze_attr = $m1->describe();

    EXAMPLES

    use Games::Maze;

    #
    # Create and print the maze and the solution to the maze.
    #
    my $minos = Games::Maze->new(dimensions => [15, 15, 3]);
    $minos->make();
    print "nnThe Maze...n", scalar($minos->to_ascii());
    $minos->solve();
    print "nnThe Solution...n", scalar($minos->to_ascii()), "n";

    #
    # We're curious about the maze properties.
    #
    my %p = $minos->describe();

    foreach (sort keys %p)
    {
    if (ref $p{$_} eq "ARRAY")
    {
    print "$_ => [", join(", ", @{$p{$_}}), "]n";
    }
    else
    {
    print "$_ => ", $p{$_}, "n";
    }
    }

    exit(0);

    Product's homepage

    Requirements:

    · Perl 5.6 or later

      


    TAGS:

    create Mazes | create Objects | Perl module | Maze | Object | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM