d20 0.3.1+1 copy "d20: ^0.3.1+1" to clipboard
d20: ^0.3.1+1 copied to clipboard

D20 is a Dart library for RPG dice rolling. Supports standard notation (like "2d12", "d6+5" and "2d20-L").

example/main.dart

import 'package:d20/d20.dart';

void main() {
  final d20 = D20();
  print(d20.roll('2d8+5+5d6'));
}
9
likes
130
pub points
46%
popularity

Publisher

verified publisherborges.dev

D20 is a Dart library for RPG dice rolling. Supports standard notation (like "2d12", "d6+5" and "2d20-L").

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

math_expressions

More

Packages that depend on d20