LuckByDice
An open-source package and algorithm rolling dice notations and handling luck.
"How can one quantity something as elusive as luck?"
This is a problem we originally developed a solution for a long time ago... It originally started as a set of formulas in an excel spreadsheet. Then it became a Lua script used in a video game released in back 2005. Next it became a C# library. And now we're supporting it as a PHP library, called LuckByDice.
Try it Out!
Make consecutive roll using a dice notation:
# | Outcome | Luck |
---|---|---|
0 | 16 | 0 |
1 | 23 | 1 |
2 | 23 | 2 |
3 | 25 | 4 |
Usage
Run dice notations using Docker:
Install using Composer: