Games::SetGames::Set module contains the rules for the game of set. | |
Download |
Games::Set Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Richard Clamp
- Publisher web site:
- http://search.cpan.org/~rclamp/
Games::Set Tags
Games::Set Description
Games::Set module contains the rules for the game of set. Games::Set module contains the rules for the game of set.SYNOPSIS my $game = Games::Set->new({ deck => }); $game->shuffle; my @cards = map { $game->deal } 1..3; # give me 3 cards print $game->set( @cards ) ? "setn" : "no setn";Games::Set understands some of the rules of the card game Set. It also knows how to generate a standard deck.METHODSnewClass::Accessor inherited constructor, returns a new gamestatedeckThe current deck. A reference to an array containing many Games::Set::Card objects.shuffleShuffle the current deck.dealTake a card from the top of the deck.standard_deckCalculates the standard deck as a list of Games::Set::Card objects.set( @cards )Returns true if the cards make a set.find_sets( @cards )returns all the possible sets within @cards as array references Requirements: · Perl
Games::Set Related Software