Giter VIP home page Giter VIP logo

dice-roller's People

Contributors

nyamsprod avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

dice-roller's Issues

Feature request : Count dice rolled over X or under Y

Would it be possible to have the same syntax as the exploding conditions (<3, >5 etc) but instead of exploding the dice, just return the count of matching dice ?

/roll 4d6>3 would return { 3, 5, 1, 4 } and count = 2.

Thanks :)

Improve Rollable::getTrace output

Currently the output of any implementation of Rollable::getTrace sucks and needs to be improve before releasing the package.

A way to do this would be to add a Rollable::getTraceAsString method along Rollable::getTrace like PHP Exception. This means changing the return type of Rollable::getTrace to array so that we can properly build the trace as string afterwards.

Cannot install

Issue summary

The docs have pretty straightforward instructions on how to install:

$ composer require bakame-php/dice-roller

System informations

I'm not sure what to put here. Please let me know if there's any additional information that might help.

Standalone code, or other way to reproduce the problem

I go to the command line and execute the following command:

$ composer require bakame-php/dice-roller

Expected result

The package is installed.

Actual result

The package is not installed and the following message is displayed:

Could not find a matching version of package bakame-php/dice-roller. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).

I also noticed that the readme.md doc shows the following on the package's main github page:

release | no releases or repo not found

Also, I can't find the package on packagist.org....but perhaps I'm looking in the wrong place...?

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.