-
-
12 Mar 2003 03:32:14 UTC
- Distribution: Games-Die
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (3 / 0 / 0)
- Kwalitee
Bus factor: 0- License: unknown
- Activity
24 month- Tools
- Download (3.1KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Games::Die::Dice
DESCRIPTION
Games::Die::Dice provides a union of any number of Games::Die objects.
SYNOPSIS
$four_eight_ten = new Games::Die::Dice(4, 8, 10); $pair_of_eights = new Games::Die::Dice('2d8'); $result = $four_eight_ten->roll() + $pair_of_eights->roll();
CONSTRUCTOR
new()
Creates a new set of Dice. Takes a list containing the number of sides of each die in the set, or a single "Dungeons and Dragons"-style specification such as "2d8" or "6d20". (the d may be upper- or lower-case)
PUBLIC METHODS
roll()
Rolls each die in the set. In scalar context, returns the sum. In list context, returns the list of values that came up on each die.
AUTHORS
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 93:
You forgot a '=back' before '=head1'
Module Install Instructions
To install Games::Die, copy and paste the appropriate command in to your terminal.
cpanm Games::Die
perl -MCPAN -e shell install Games::Die
For more information on module installation, please visit the detailed CPAN module installation guide.