Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: A small Deity AI class system

by jahero (Pilgrim)
on Nov 06, 2017 at 08:14 UTC ( [id://1202802]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub rollDX { rand(shift->{dx}); }
    
  2. or download this
        sub new { # this was named RNG
                my $class = shift;
    ...
                return bless $self, $class;
        }
    
  3. or download this
        sub roll {
                my ($self, $dxx) = shift;
    
  4. or download this
        sub roll {
                my ($self, $dxx) = @_;
    
  5. or download this
        package HollyGameAI::RNG;
        use strict;
    ...
                return $roll_dispatch->{$dxx}->();
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1202802]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found