Giter Club home page Giter Club logo

dice's Introduction

dice's People

Contributors

jcromero avatar tulir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dice's Issues

Include zero in dice roll results

In some cases zero is desirable in roll results.

I took a quick look at the code, and it seems that zero is never returned as a possible outcome (except for !roll d0 or !roll 3d0 where 0 is the only result).

I would like to try to implement this, but before that some things should be clarified.
What would be the best way to explicitly instruct the !roll command to include zero as one of the possible dice roll outcomes?
A few options come in my mind:

  • !roll 1d9,0;
  • !roll 1d9 --zero or !roll --zero 1d9, or !roll with-zero 1d9;
  • !roll 1d[0-9] or !roll 1d0..9 (this would introduce additional functionality - a possibility to specify an explicit range).

Personally I like the last the most.

I am not completely sure though how well any of these proposed options would comply with the rest of !roll's functionality.

Add usage to readme?

Hi,

thank you for this great plugin. Unfortunately it took me a while to find out how it works (I'm not a coder).

I proprose the following lines for the readme:

Usage

!roll XdY
  • X: Number of dices to roll
  • Y: number of pips

Examples:

  • !roll 2d6 would show the result of 2 6-sided dice.
  • !roll 30d20 would show the result of 30 20-sided dice.

Show individual dice results

Currently, if you put in !roll 3d20, the output could be 21 for example, but it could also be 5 + 6 + 10 = 21 for things that might benefit from that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.