Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Racing Mice with Language::Logo - MouseRace.pm

by teamster_jr (Curate)
on Mar 06, 2007 at 11:36 UTC ( [id://603380]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    # race.pl - example script for MouseRace.pm
    ...
    $arena->add_mouse( color => "green" );
    
    $arena->run_mousy_run;
    
  2. or download this
    # MouseRace.pm - a mouse racing module.
    package MouseRace;
    ...
    }
    
    1;
    
  3. or download this
    # MouseRace/DFS.pm - the default mouse solver routine - using depth fi
    +rst search
    package MouseRace::DFS;
    ...
    }
    
    1;
    
  4. or download this
    # MouseRace/Random.pm - a random mouse solver
    package MouseRace::Random;
    ...
    }
    
    1;
    
  5. or download this
    # $data -> a data hash for use as a persistent scratch pad
    # $current -> your current position (box #)
    # $options -> these is a data structure containing your available move
    +s.
    
  6. or download this
    {
              'relative' => {
    ...
                             }
            };
    
  7. or download this
    while($mouse_code_not_optimised){
    $arena->add_mouse(solve=>$code_ref);
    $arena->run_mousy_run;
    optimise_code($code_ref);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://603380]
Approved by Corion
Front-paged by McDarren
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-05-21 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found