craps_domain 0.1.0+1 copy "craps_domain: ^0.1.0+1" to clipboard
craps_domain: ^0.1.0+1 copied to clipboard

Core Craps Logic - This package contains all of the components of a craps game. It is intended to make generating a craps game easier.

example/main.dart

import 'package:craps_domain/craps_domain.dart';

void main() {
  final dice = Dice.generic();
  final puck = Puck();

  for (var i = 1; i < 11; i++) {
    final roll = dice.roll();
    roll.log();
    puck.evalRoll(roll.value);
  }
}
1
likes
160
points
0
downloads

Publisher

verified publisherfacshus.com

Weekly Downloads

Core Craps Logic - This package contains all of the components of a craps game. It is intended to make generating a craps game easier.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on craps_domain