{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["games","perl5"],"comment":"Perl module to simulate die rolls","compare":null,"dependentCount":null,"description":"Games::Dice simulates die rolls. It uses a function-oriented (not\nobject-oriented) interface. No functions are exported by default. At present,\nthere are two functions which are exportable: roll and roll_array. The latter is\nused internally by roll, but can also be exported by itself.\n\nThe number and type of dice to roll is given in a style which should be familiar\nto players of popular role-playing games: adb[+-*/b]c. a is optional and\ndefaults to 1; it gives the number of dice to roll. b indicates the number of\nsides to each die; the most common, cube-shaped die is thus a d6. %25 can be used\ninstead of 100 for b; hence, rolling 2d%25 and 2d100 is equivalent. If F is used\nfor b fudge dice are used, which either results in -1, 0 or 1. roll simulates a\nrolls of b-sided dice and adds together the results. The optional end,\nconsisting of one of +-*/b and a number c, can modify the sum of the individual\ndice. +-*/ are similar in that they take the sum of the rolls and add or\nsubtract c, or multiply or divide the sum by c. (x can also be used instead of\n*.) Hence, 1d6+2 gives a number in the range 3..8, and 2d4*10 gives a number in\nthe range 20..80. (Using / truncates the result to an int after dividing.) Using\nb in this slot is a little different: it's short for \"best\" and indicates \"roll\na number of dice, but add together only the best few\". For example, 5d6b3 rolls\nfive six- sided dice and adds together the three best rolls. This is sometimes\nused, for example, in role-playing to give higher averages.","flavors":[],"html":"https://daemonports.org/dragonfly/games/p5-Games-Dice/","kind":"port","lastUpdate":null,"license":["MIT"],"maintainer":"ports@FreeBSD.org","name":"p5-Games-Dice","newest":true,"newestVersion":"0.046","noVulnData":false,"origin":"games/p5-Games-Dice","otherSystems":[{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"games/p5-Games-Dice","path":"/games/p5-Games-Dice/","system":"FreeBSD","version":"0.046"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"games/p5-Games-Dice","path":"","system":"HardenedBSD","version":"0.046"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"games/p5-Games-Dice","path":"","system":"GhostBSD","version":"0.046"}],"packages":null,"pkgName":"p5-Games-Dice-0.046","related":null,"repository":"DPorts","requiredBy":[],"requiredByCount":0,"runDepends":["lang/perl5.36"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"0.046","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Games-Dice"}
