masakuuuu/dicegame
最新稳定版本:1.0.0
Composer 安装命令:
composer require masakuuuu/dicegame
包简介
play dicegame
README 文档
README
日本語
6面体のサイコロをPHPのプログラムで実装
- 実装内容
- 6つ面を持っている
- 1から6までの数字を1つずつ持っている
- サイコロを振ることでサイコロが持ついずれかの数字を得る
English
Implementing 6-sided dice in a PHP program
- Implementation details
- Has six faces
- Has one number from 1 to 6
- Roll the dice to get one of the numbers the dice have
Use
$dice = new Dice();
$dice->setSided();
$dice->roll();
$dice->getSide();
PHPUnit 実行
vendor/phpunit/phpunit/phpunit test/DiceTest.php
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-19