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

NAME

Games::Bettor::Consistent - A class that holds the methods for a consistent bettor

VERSION

Version 1.0

SYNOPSIS

    use Games::Bettor::Consistent;

    $bettor = Games::Bettor::Consistent->new( amount => 10 ); # always bets 10 units
    $bettor = Games::Bettor::Consistent->new( percent => 10 );  # always bets 10% of the bankroll

DESCRIPTION

This method represents a bettor who always bets the same amount on each trial. The amount bet can be a flat amount of a percentage of the current bankroll, but it's always the same amount or percent.

METHODS

new

  $method = Games::Bettor::Consistent->new( amount => 1 );

name

  $method_name = $method->name();
  
  Returns the name of the betting method.

get_bet

  $amount = $method->get_bet( bankroll => $bankroll );
  
  Returns the amount to bet for this trial.  The bankroll argument is the amount of the bankroll currently for 
  the Bettor object using this method.

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::Consistent

You can also look for information at:

ACKNOWLEDGEMENTS

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.