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);
    }