Dice
Very simple dice roller, (*1)
Installation
Download this repository to your source code, (*2)
Usage
Create new dice, (*3)
$dice = new Dice();
To roll dice use, following script throw 1 times with standard (cube dice) dice., (*4)
$dice->roll();
If you want throw more with another dice or you want throw more times use, (*5)
// 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, (*6)
Credits
Charlotta Jung - asunay, (*7)
License
MIT, (*8)