Port details on branch 2022Q3 |
- p5-Games-Dice Perl module to simulate die rolls
- 0.046 games =0 0.046Version of this port present on the latest quarterly branch.
- There is no maintainer for this port.
- Any concerns regarding this port should be directed to the FreeBSD Ports mailing list via ports@FreeBSD.org
- Port Added: 2005-06-02 12:26:48
- Last Update: 2023-01-30 12:59:28
- Commit Hash: 99189d3
- Also Listed In: perl5
- License: MIT
- WWW:
- https://metacpan.org/release/Games-Dice
- Description:
- Games::Dice simulates die rolls. It uses a function-oriented (not
object-oriented) interface. No functions are exported by default. At present,
there are two functions which are exportable: roll and roll_array. The latter is
used internally by roll, but can also be exported by itself.
The number and type of dice to roll is given in a style which should be familiar
to players of popular role-playing games: adb[+-*/b]c. a is optional and
defaults to 1; it gives the number of dice to roll. b indicates the number of
sides to each die; the most common, cube-shaped die is thus a d6. % can be used
instead of 100 for b; hence, rolling 2d% and 2d100 is equivalent. If F is used
for b fudge dice are used, which either results in -1, 0 or 1. roll simulates a
rolls of b-sided dice and adds together the results. The optional end,
consisting of one of +-*/b and a number c, can modify the sum of the individual
dice. +-*/ are similar in that they take the sum of the rolls and add or
subtract c, or multiply or divide the sum by c. (x can also be used instead of
*.) Hence, 1d6+2 gives a number in the range 3..8, and 2d4*10 gives a number in
the range 20..80. (Using / truncates the result to an int after dividing.) Using
b in this slot is a little different: it's short for "best" and indicates "roll
a number of dice, but add together only the best few". For example, 5d6b3 rolls
five six- sided dice and adds together the three best rolls. This is sometimes
used, for example, in role-playing to give higher averages.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Games-Dice>0:games/p5-Games-Dice
- To install the port:
- cd /usr/ports/games/p5-Games-Dice/ && make install clean
- To add the package, run one of these commands:
- pkg install games/p5-Games-Dice
- pkg install p5-Games-Dice
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Games-Dice
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1674589670
SHA256 (Games-Dice-0.046.tar.gz) = b79c8ced572157f3623a5fd8179f3babe63386163260955a41f95b089fec7eff
SIZE (Games-Dice-0.046.tar.gz) = 13218
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Test dependencies:
-
- p5-Test-MockRandom>=0 : devel/p5-Test-MockRandom
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- games_p5-Games-Dice
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|