gambit 0.1.0 copy "gambit: ^0.1.0" to clipboard
gambit: ^0.1.0 copied to clipboard

Simulate and test odds-based mechanics such as dice rolls and more.

Gambit #

Simulate and test odds-based mechanics such as dice rolls and more.

Github Actions Coverage Status

Usage #

import 'package:gambit/gambit.dart';

Features #

  • Extensions on Random and a Distribution interface for custom mechanics:
  • Dice: Roll and simulate dice of any size;

Contributing #

Gambit is a tiny, focused package. Within that scope, we're happy to accept contributions. If you have a feature you'd like to see, feel free to file an issue or fork and open a pull request.

CI #

This package is:

  • Formatted with dart format.
  • Checked with dart analyze.
  • Tested with dart test, including with code coverage.

See github/workflows/check.yaml for details.

Coverage #

To view the coverage report locally (MacOS):

brew install lcov
dart run coverage:test_with_coverage
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html
1
likes
140
pub points
0%
popularity

Publisher

verified publisherlurey.dev

Simulate and test odds-based mechanics such as dice rolls and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on gambit