Main > Programming > Libraries >

Games::Cards 1.45

Games::Cards 1.45

Sponsored Links

Games::Cards 1.45 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 4 (1 times)
File size: 0.089 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1043
Date added: 2007-01-03
Publisher: Amir Karger

Games::Cards 1.45 description

Games::Cards is a Perl module for writing and playing card games.

SYNOPSIS

use Games::Cards;
my $Rummy = new Games::Cards::Game;

# Create the correct deck for a game of Rummy.
my $Deck = new Games::Cards::Deck ($Rummy, "Deck");

# shuffle the deck and create the discard pile
$Deck->shuffle;
my $Discard = new Games::Cards::Queue "Discard Pile";

# Deal out the hands
foreach my $i (1 .. 3) {
my $hand = new Games::Cards::Hand "Player $i" ;
$Deck->give_cards($hand, 7);
$hand->sort_by_value;
push @Hands, $hand;
}

# print hands (e.g. "Player 1: AS 2C 3C 3H 10D QS KH")
foreach (@Hands) { print ($_->print("short"), "n") }

$Hands[1]->give_a_card ($Discard, "8D"); # discard 8 of diamonds

This module creates objects and methods to allow easier programming of card games in Perl. It allows you to do things like create decks of cards, have piles of cards, hands, and other sets of cards, turn cards face-up or face-down, and move cards from one set to another. Which is pretty much all you need for most card games.

Games::Cards 1.45 Screenshot

Advertisements

Games::Cards 1.45 Keywords

Bookmark Games::Cards 1.45

Hyperlink code:
Link for forum:

Games::Cards 1.45 Copyright

WareSeeker periodically updates pricing and software information of Games::Cards 1.45 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Games::Cards 1.45 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Games::Cards::Poker is a Perl module for Pure Perl Poker functions. Free Download
Games::Euchre is an Euchre card game for humans and computers. Free Download
Games::Bingo::Card is a helper class for Games::Bingo. Free Download
Wolvix Games is a new edition of the Wolvix live CD, featuring over 50 games. Free Download
Games::GoogleWhack is a Perl module that finds, verifies, and/or submits GoogleWhacks. Free Download
Games::Blackjack is a Perl module with Blackjack Utility Classes. Free Download
Games::Score is a Perl module to keep track of score in games . Free Download
Games::Quakeworld::Query is a class for querying QuakeWorld servers. Free Download