dart_dice_parser 0.2.2 copy "dart_dice_parser: ^0.2.2" to clipboard
dart_dice_parser: ^0.2.2 copied to clipboard

outdated

A dart library for parsing dice notation (like "2d6+4", "3d6", or "3d10 + 2d6 - 5d4")

dart_dice_parser #

A library for parsing dice notation

Usage #

A simple usage example:

import 'package:dart_dice_parser/dart_dice_parser.dart';

main() {

  var diceParser = new DiceParser();

  var diceExpression = "2d6 + 1 + 3d10";

  print("$diceExpression : ${diceParser.roll(diceExpression)}");
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

TODO #

decide if want to continue w/ this library , or use D20 : https://pub.dev/packages/d20

2
likes
0
pub points
56%
popularity

Publisher

unverified uploader

A dart library for parsing dice notation (like "2d6+4", "3d6", or "3d10 + 2d6 - 5d4")

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

petitparser

More

Packages that depend on dart_dice_parser