maymeow/dice

骰子投掷器

维护者

详细信息

github.com/MayMeow/dice

源代码

安装: 12

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

类型:插件

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

This package is auto-updated.

Last update: 2024-09-14 03:00:31 UTC


README

非常简单的骰子投掷器

安装

将此存储库下载到源代码

使用

创建新的骰子

$dice = new Dice();

要投掷骰子,请使用以下脚本,以标准(立方骰子)骰子投掷1次。

$dice->roll();

如果您想投掷更多其他骰子,或者想投掷更多次数,请使用

// throw 3 times with stanard cube Dice
$dice->roll('3x6');

// throw 5 times with non standar dice
$dice->roll('5x20');

贡献

  1. 分支它!
  2. 创建您的功能分支:git checkout -b my-new-feature
  3. 提交您的更改:git commit -am '添加一些功能'
  4. 推送到分支:git push origin my-new-feature
  5. 提交拉取请求 :D

历史

TODO:编写历史

鸣谢

Charlotta Jung - asunay

许可

MIT