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

outdatedDart 1 only

A small library for parsing dice notation

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.

1
likes
0
pub points
26%
popularity

Publisher

unverified uploader

A small library for parsing dice notation

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, petitparser

More

Packages that depend on dart_dice_parser