Skip to content

OptikCrash/dice_tower

 
 

Repository files navigation

dice_tower

A flutter package for rolling dice using the rules for various table top games.

Supported rule sets:

  • Dungeons & Dragons 5e

Planned rule sets:

  • Shadowrun 5e
  • Pathfinder

Installation

To use this plugin, add dice_tower as a dependency in your pubspec.yaml file.

Usage

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 rule set.

RollResult r1 = Dnd5eRuleSet.roll([d1]); // Single di.
RollResult r2 = Dnd5eRuleSet.roll([d1, d2]); // Multiple dice at once.

About

Open source dice rolling library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%