As a D&D fan, I thought it would be a unique opportunity to write a CLI in Dart for some good ole dice rolling!
Commands Available:
- All dice rolls available (d4, d6, d8, d10, d12, d20, d100)
- Messages and Options can be added, or changed in the 'helpers' folder
- Add options for rolling with advantage/disadvantage ('--a' and '--d')
- Add test cases
Fixes:
- Random number generator did not account for returning the integer "0"
- Rolled back V2 changes due to instability in the main thread
Issues:
- "help" command fails to register
- Install Dart
- Clone this repository and navigate to ./bin folder in your terminal
- Compile using the dart compile command OR
- Use the dart run command
dart run bin/dungeondice.dart