perl-Games-Dice-0.45.0-3.mga6.noarch.rpm


Advertisement

Description

perl-Games-Dice - Simulates rolling dice

Property Value
Distribution Mageia Cauldron
Repository Mageia Core i586
Package name perl-Games-Dice
Package version 0.45.0
Package release 3.mga6
Package architecture noarch
Package type rpm
Installed size 57.33 KB
Download size 22.10 KB
Official Mirror distrib-coffee.ipsl.jussieu.fr
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: _a_d_b_[+-*/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. '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 roll-playing to give higher averages.
Generally, 'roll' probably provides the nicer interface, since it does the
adding up itself. However, in some situations one may wish to process the
individual rolls (for example, I am told that in the game Feng Shui, the
number of dice to be rolled cannot be determined in advance but depends on
whether any 6's were rolled); in such a case, one can use 'roll_array' to
return an array of values, which can then be examined or processed in an
application-dependent manner.

Alternatives

Package Version Architecture Repository
perl-Games-Dice-0.45.0-3.mga6.noarch.rpm 0.45.0 noarch Mageia Core
perl-Games-Dice - - -

Requires

Name Value
perl >= 1:5.010
perl(Exporter) -
perl(Games::Dice) -
perl(if) -
perl(strict) -
perl(warnings) -
perl-base >= 2:5.22.2

Provides

Name Value
perl(Games::Dice) == 0.45.0
perl-Games-Dice == 0.45.0-3.mga6

Download

Type URL
Binary Package perl-Games-Dice-0.45.0-3.mga6.noarch.rpm
Source Package perl-Games-Dice-0.45.0-3.mga6.src.rpm

Install Howto

  1. Enable Mageia Core repository on Install and Remove Software
  2. Update packages list:
    # urpmi.update -a
  3. Install perl-Games-Dice rpm package:
    # urpmi perl-Games-Dice

Files

Path
/usr/bin/roll
/usr/lib/perl5/vendor_perl/5.22.2/Games/Dice.pm
/usr/share/doc/perl-Games-Dice/Changes
/usr/share/doc/perl-Games-Dice/LICENSE
/usr/share/doc/perl-Games-Dice/META.json
/usr/share/doc/perl-Games-Dice/META.yml
/usr/share/doc/perl-Games-Dice/MYMETA.yml
/usr/share/doc/perl-Games-Dice/README
/usr/share/man/man1/roll.1.xz
/usr/share/man/man3/Games::Dice.3pm.xz

Changelog

2016-06-19 - pterjan <pterjan> 0.45.0-3.mga6
+ Revision: 1027651
- Rebuild for perl 5.22.2
2016-02-19 - umeabot <umeabot> 0.45.0-2.mga6
+ Revision: 967730
- Mageia 6 Mass Rebuild
2015-07-04 - sander85 <sander85> 0.45.0-1.mga6
+ Revision: 850165
- update to 0.045
2014-10-19 - umeabot <umeabot> 0.43.0-5.mga5
+ Revision: 790159
- Rebuild to potentially add missing dependencies
2014-10-15 - umeabot <umeabot> 0.43.0-4.mga5
+ Revision: 747734
- Second Mageia 5 Mass Rebuild
2014-09-16 - umeabot <umeabot> 0.43.0-3.mga5
+ Revision: 684830
- Mageia 5 Mass Rebuild
2013-10-19 - umeabot <umeabot> 0.43.0-2.mga4
+ Revision: 533984
- Mageia 4 Mass Rebuild
2013-09-08 - sander85 <sander85> 0.43.0-1.mga4
+ Revision: 475960
- update to 0.043
2013-08-29 - sander85 <sander85> 0.42.0-1.mga4
+ Revision: 473010
- update to 0.042

See Also

Package Description
perl-Games-Mastermind-Cracker-0.30.0-9.mga7.noarch.rpm Guess every code in order
perl-Games-Solitaire-Verify-0.190.0-1.mga7.noarch.rpm Process and verify solitaire games
perl-Games-Sudoku-Solver-1.1.0-8.mga6.noarch.rpm Solve 9x9-Sudokus recursivly
perl-Gazelle-0.480.0-2.mga7.i586.rpm Preforked Plack Handler for performance freaks
perl-Gearman-2.4.14-1.mga7.noarch.rpm Client for gearman distributed job system
perl-Gedcomlite-1.16-6.mga6.noarch.rpm Genealogy perl module
perl-Generic-Assertions-0.1.1-3.mga6.noarch.rpm A Generic Assertion checking class
perl-Geo-Coordinates-DecimalDegrees-0.90.0-8.mga6.noarch.rpm Convert between degrees/minutes/seconds and decimal degrees
perl-Geo-Coordinates-UTM-0.110.0-7.mga6.noarch.rpm Translation between Lat Lon and UTM Coords
perl-Geo-Google-MapObject-0.60.0-7.mga6.noarch.rpm Managing the server side of Google Maps API
perl-Geo-Gpx-0.260.0-8.mga6.noarch.rpm Create and parse GPX files
perl-Geo-IP-1.510.0-2.mga7.i586.rpm Look up country by IP Address
perl-Geo-IPfree-1.151.940-3.mga6.noarch.rpm Look up country by IP Address
perl-Geo-METAR-1.150.0-7.mga6.noarch.rpm Process aviation weather reports in the METAR format
perl-Geo-Mercator-1.10.0-8.mga6.noarch.rpm Compute Mercator Projection of latitude/longitude into meters
Advertisement
Advertisement