Games::Cards::PokerGames::Cards::Poker is a Perl module for Pure Perl Poker functions. | |
Download |
Games::Cards::Poker Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Pip Stuart
- Publisher web site:
- http://search.cpan.org/~pip/XML-Tidy-1.2.54HJnFa/Tidy.pm
Games::Cards::Poker Tags
Games::Cards::Poker Description
Games::Cards::Poker is a Perl module for Pure Perl Poker functions. Games::Cards::Poker is a Perl module for Pure Perl Poker functions.SYNOPSIS use Games::Cards::Poker; # Deal Four (4) players hands and score them... my $players = 4; # number of players to get hands dealt my $hand_size = 5; # number of cards to deal to each player my @hands = ();# player hand data my @deck = Shuffle(Deck()); while($players--) { push(@{$hands}, pop(@deck)) foreach(1..$hand_size); printf("Player$players score:M hand:@{$hands}n", ScoreHand(@{$hands})); }Poker provides a few functions for creating decks of cards and manipulating them for simple Poker games or simulations. Requirements: · Perl
Games::Cards::Poker Related Software