https://github.com/maymeow/dice
:game_die: Simple dice roller
https://github.com/maymeow/dice
dice dice-roller php random
Last synced: over 1 year ago
JSON representation
:game_die: Simple dice roller
- Host: GitHub
- URL: https://github.com/maymeow/dice
- Owner: MayMeow
- License: mit
- Created: 2017-01-21T13:02:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T13:05:26.000Z (over 9 years ago)
- Last Synced: 2025-02-02T04:24:26.562Z (over 1 year ago)
- Topics: dice, dice-roller, php, random
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dice
Very simple dice roller
## Installation
Download this repository to your source code
## Usage
Create new dice
```php
$dice = new Dice();
```
To roll dice use, following script throw 1 times with standard (cube dice) dice.
```php
$dice->roll();
```
If you want throw more with another dice or you want throw more times use
```php
// throw 3 times with stanard cube Dice
$dice->roll('3x6');
// throw 5 times with non standar dice
$dice->roll('5x20');
```
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## History
TODO: Write history
## Credits
[Charlotta Jung - asunay](https://github.com/asunay)
## License
MIT