zero-config/d-roll 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zero-config/d-roll

Composer 安装命令:

composer create-project zero-config/d-roll

包简介

Dice rolling application

README 文档

README

D-Roll is a dice rolling application. It implements zero-config/d.

Installation

composer create-project --no-dev zero-config/d-roll

Rolling dice

The standalone application allows you to roll dice on-the-fly. It also tells you when you roll a CRIT.

Crit

Because some games require a high number of dice with different number of eyes, keeping track of them can be a pain and therefore, the application can interpret human readable dice notations:

Interpreted

You will notice that one of the inputs is 3d6+10 and the last input is 6. Under the hood this gets added up to 4d6+10.

The notation is also very loose. That is why 2 D12 is interpreted as 2d12.

You will also notice that the interpreter sorts the dice by number of eyes. This adds to the readability of the output.

Tempting fate

Another part of the application will help you tempt fate. It is based on the Fate RPG.

Epic

One can supply a custom translation for fate values, to expand the list of possibilities, by supplying a file with the --config option.

A custom configuration looks like the following:

{
  "<": {
    "label": "Everything is awesome!",
    "color": "cyan"
  },
  "-1": {
    "label": "Just about awesome!",
    "color": "yellow"
  },
  "0": {
    "label": "Awesome!",
    "color": "green"
  },
  ">": {
    "label": "Ridiculously awesome!",
    "color": "cyan"
  }
}

Available colors are black, red, green, yellow, blue, magenta, cyan and white.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-02-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固