Poker::Dealer - Simple class to represent a poker dealer
Version 0.01
use Poker::Dealer; my $dealer = Poker::Dealer->new; $dealer->shuffle_deck; # Returns an array_ref of face-up card objects my $cards = $dealer->deal_up(4); # Returns an array_ref of face-down card objects my $cards = $dealer->deal_down(5); # Deal yourself two aces: my $cards = $dealer->deal_named(['As', 'Ah']);
Creates a new deck and randomizes the cards.
Shuffles cards in the discard pile and adds them to the existing deck.
Returns an array_ref of Poker::Card objects face down
Returns an array_ref of Poker::Card objects face up
Fetch a specific set of cards from the deck.
Nathaniel Graham, <ngraham at cpan.org>
<ngraham at cpan.org>
Copyright 2016 Nathaniel Graham.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
http://www.perlfoundation.org/artistic_license_2_0
To install Poker::Eval, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Poker::Eval
CPAN shell
perl -MCPAN -e shell install Poker::Eval
For more information on module installation, please visit the detailed CPAN module installation guide.