maymeow / dice
Dice roller
v1.0
2017-01-21 13:03 UTC
Requires
- maymeow/random: 0.1.*
Replaces
- asunay/dice: *
This package is auto-updated.
Last update: 2024-12-14 03:35:59 UTC
README
Very simple dice roller
Installation
Download this repository to your source code
Usage
Create new dice
$dice = new Dice();
To roll dice use, following script throw 1 times with standard (cube dice) dice.
$dice->roll();
If you want throw more with another dice or you want throw more times use
// throw 3 times with stanard cube Dice $dice->roll('3x6'); // throw 5 times with non standar dice $dice->roll('5x20');
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
License
MIT