maymeow/dice

Dice roller

Maintainers

Details

github.com/MayMeow/dice

Source

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Type:plugin

v1.0 2017-01-21 13:03 UTC

This package is auto-updated.

Last update: 2024-04-14 01:51:50 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

  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

License

MIT