A flutter package for rolling dice using the rules for various table top games.
- Dungeons & Dragons 5e
- Shadowrun 5e
- Pathfinder
To use this plugin, add dice_tower
as a dependency in your pubspec.yaml file.
Import the library.
import "package:dice_tower/dice_tower.dart";
Create some dice.
Dice d1 = Dice(20);
Dice d2 = Dice(8, modifier: 1, numberOfDice: 3);
Roll them using a ruleset.
RollResult r1 = Dnd5eRuleset.roll([d1]); // Single di.
RollResult r2 = Dnd5eRuleset.roll([d1, d2]); // Multiple dice at once.