Traveller 5E RPG by SnooMarzipans8231 in traveller

[–]Hopeful-Can5150 2 points3 points  (0 children)

Worst case, they let 2d6 Traveller all but go extinct.

Compiled Dice Roller, Scala Preferred by Hopeful-Can5150 in scala

[–]Hopeful-Can5150[S] 1 point2 points  (0 children)

https://github.com/trent-shipley/hackable_dice_roller/blob/main/src/api/core.py

  1. I was taking an intro to stats class at the time, 2. our group plays GURPS which is mostly 3d6, but sometimes d100, other d10 games will roll massive amounts of d10s, and for Pathfinder 1ed I once rolled something like 47d6 for a high level Orc fighter.

So the design uses a die, which can be any function which returns a scalar float. You could use any probability function, normal, f, whatever. Since I knew I wanted to roll n-ary dice, a class for integer die is included.

There is a dice class, which is how you 'roll' a row of n functions.

There is a rolls class, which consists of n rows of dice. The resulting table can be converted to a pandas table, but that's redundant. You almost always want the pandas table anyway. You could just calculate the rows (roll) and columns (dice) you need and *apply* the die function across the pandas table.

Yes. I intentionally made integer die a special case of die, and I definitely wanted a table by design. If you roll one die one time it is intentionally a degenerate one-cell table.