craps_domain 0.1.0+1 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.
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);
}
}