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'));
}
copied to clipboard
9
likes
150
points
42
downloads

Publisher

verified publisherborges.dev

Weekly Downloads

2024.09.28 - 2025.04.12

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

math_expressions

More

Packages that depend on d20