Games::Roshambo 1.01
Sponsored Links
Games::Roshambo 1.01 Ranking & Summary
File size:
Platform:
Any Platform
License:
Perl Artistic License
Price:
FREE
Downloads:
17
Date added:
2009-05-14
Publisher:
Chris Thompson
Games::Roshambo 1.01 description
Games:Roshambo 1.01 is a brilliant module which manages a game of Rock/Paper/Scissors, aka Roshambo
Major Features:
- You can specify an optional hashref containing configuration items.
- Valid configuration items are: numthrows
- The number of separate valid throws for a game, for example, in Rock, Paper, Scissors, there are 3 throws, while in a spirited game of RPS-101, there are 101 valid throws. If not specified, this defaults to 3.
- sortable
- OPTIONAL: Behold the madness of Chris Prather. Passing a TRUE value to new for this item will cause the judge method to return values of -1 if Player 1 wins, 0 for a tie and 1 for Player 2, instead of the 0, 1 and 2 it does normally.
- The entirely dubious benefit of this is that the function can be used in conjunction with sort. It's his fault. He asked for it. Any questions as to the relative usefulness of this should be directed at him. The management disavows all knowledge.
- This method will judge a game of RPS, returning a 1 for Player 1 winning, a 2 for Player 2, and a 0 for a tie.
- It takes up to two arguments, indicating the throws for Player 1 and Player 2, as text representations.
- If one or both arguments are omitted, the method will internally call $self->gen_throw to randomly generate one.
- getaction
- When called with two throws, this will return the text of the action for this combination. For example, if called as $rps-getaction("rock", "paper")> the returned value will be "covers".
- This module contains actions for three throw (Rock, Paper, Scissors) and 101 throw games, in any other number of throws, this method will return undef.
Requirements: Perl
Games::Roshambo 1.01 Screenshot
Games::Roshambo 1.01 Keywords
Roshambo 1.01
Player 1
For Player
game
Roshambo
module
Perl
1
throws
Games::Roshambo
Roshambo game
Perl module
Games::Roshambo 1.01
Others
Programming
Bookmark Games::Roshambo 1.01
Games::Roshambo 1.01 Copyright
WareSeeker periodically updates pricing and software information of Games::Roshambo 1.01 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::Roshambo 1.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. Free Download
Timestamp::Simple is a Perl module with simple methods for timestamping. Free Download
Games::Sudoku::General is a Perl module that can solve sudoku-like puzzles. Free Download
Test::CPANpm is a Perl module to test a distributions interaction with CPAN before uploading. Free Download
Pathan-P provides Perl bindings for Pathan 1. Free Download
Test::Data is a Perl module to test functions for particular variable types. Free Download
ExtUtils::Embed is a Perl module with utilities for embedding Perl in C/C++ applications. Free Download
Perl OpenID is a perl module for verifying OpenID identities. Free Download
Latest Software
Popular Software
Favourite Software