bakame-php / dice-roller Goto Github PK
View Code? Open in Web Editor NEWa dice roller generator in PHP
License: MIT License
a dice roller generator in PHP
License: MIT License
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 :)
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.
The docs have pretty straightforward instructions on how to install:
$ composer require bakame-php/dice-roller
I'm not sure what to put here. Please let me know if there's any additional information that might help.
I go to the command line and execute the following command:
$ composer require bakame-php/dice-roller
The package is installed.
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...?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.