https://github.com/arranf/imperial-assault-dice
A Dart library for simulating the rolling of dice in FFG's Imperial Assault
https://github.com/arranf/imperial-assault-dice
Last synced: 8 months ago
JSON representation
A Dart library for simulating the rolling of dice in FFG's Imperial Assault
- Host: GitHub
- URL: https://github.com/arranf/imperial-assault-dice
- Owner: arranf
- License: mit
- Created: 2018-10-08T14:23:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T18:09:43.000Z (over 7 years ago)
- Last Synced: 2025-09-09T07:33:51.264Z (9 months ago)
- Language: Dart
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A library for simulating rolling dice in FFG's Imperial Assault.
## Usage
A simple usage example:
```dart
import 'package:imperial_assault_dice/imperial_assault_dice.dart';
main() {
var calculator = new DiceCalculator([new RedDie(), new YellowDie()], [new BlackDie()]);
var result = calculator.Simulate(30);
print(result);
var redDie = new RedDie();
print(redDie.roll());
}
```
## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/arranf/Imperial-Assault-Dice/issues