Games::Bettor::Martingale - A class that holds the methods for a martingale bettor
Version 1.0
use Games::Bettor::Martingale; $bettor = Games::Bettor::Martingale->new( amount => 1 ); $bettor = Games::Bettor::Martingale->new( percent => 10 );
This method represents a bettor who always bets using the Martingale system. This bettor will always bet the same amount on the first bet and on any subsequent bet where he has won the previous trial. If he has lost the previous trial, he will double his last bet until he wins.
$method = Games::Bettor::Martingale->new( amount => 1 ); $method = Games::Bettor::Martingale->new( percent => 10 ); amount: The amount of bet on each round in absolute betting units. percent: The amount fo bet on each round in percentage of bankroll.
$method_name = $method->name(); Returns the name of the betting method.
$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.
Troy Denkinger, <tdenkinger at gmail.com>
<tdenkinger at gmail.com>
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.
bug-games-bettor at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Games::Bettor::Martingale
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Games-Bettor
CPAN Ratings
http://cpanratings.perl.org/d/Games-Bettor
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Games-Bettor
Search CPAN
http://search.cpan.org/dist/Games-Bettor
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.
To install Games::Bettor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Bettor
CPAN shell
perl -MCPAN -e shell install Games::Bettor
For more information on module installation, please visit the detailed CPAN module installation guide.