maymeow / dice
v1.0
2017-01-21 13:03 UTC
Requires
- maymeow/random: 0.1.*
Replaces
- asunay/dice: *
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');
贡献
- 分支它!
- 创建您的功能分支:
git checkout -b my-new-feature
- 提交您的更改:
git commit -am '添加一些功能'
- 推送到分支:
git push origin my-new-feature
- 提交拉取请求 :D
历史
TODO:编写历史
鸣谢
许可
MIT