The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Games::Bettor - A class representing a bettor

VERSION

Version 1.0

SYNOPSIS

This class represents an individual bettor with a name, bankroll, betting method and history.

Perhaps a little code snippet.

    use Games::Bettor;

    my $bettor = Games::Bettor->new( name => 'Connie', 
                                     bankroll => 1000, 
                                     method => Games::Bettor::Consistent->new( amount => 1 )
                                   );

METHODS

new

  $bettor = Games::Bettor->new( name     => $string,
                                bankroll => $number,
                                method   => $ref_to_method
                              );
  
  Returns a new Bettor object.
  
  name: A human readable designation for this object.
  bankroll: The starting bankroll for this bettor.
  method: a reference to the betting method to use.

name

  my $name= $bettor->name();
  
  Returns the name associated with the Bettor object;

log_result

  $bettor->log_result( result => [0|1] );
  
  Alerts the Bettor object to the outcome of a paricular trial.

report

  my $bettor_data = $bettor->report();
    
  Returns a hash reference containing data on the run for a particular Bettor object.  The data points
  returned are name, starting bankroll, ending bankroll and the trial history.

AUTHOR

Troy Denkinger, <tdenkinger at gmail.com>

BUGS

Please report any bugs or feature requests to bug-games-bettor at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Bettor. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Games::Bettor

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2006 Troy Denkinger, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.