Giter VIP home page Giter VIP logo

dicerun-ts's Introduction

Hi there ๐Ÿ‘‹

LinkedIn

๐Ÿ“ˆ GitHub Stats

Franco Ponticelli's GitHub Stats

Top Langs

GitHub Streak

fponticelli

visitor badge

dicerun-ts's People

Contributors

fponticelli avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dicerun-ts's Issues

Rescaling in presence of NaN

Consider the expression d6 / (d6 - 1). Note that the maximum value is 6 but that the cumulative probability of getting 6 or less is only 83%. This is presumably caused by results of NaN not being plotted.

We could:

  • Explicitly show the probability of NaN
  • Drop the NaN from the denominator, implicitly rerolling in the presence of NaN
  • Completely abandon division as a feature since it is probably rarely used

Dice graph breaking?

The graphs for the dice rolls seem to break whenever the "bucket size" is more than one.

The graph starts normal and with expected results but then at some point in the sampling it will skip to the left and have the values around double the expected.

I have seen this happen primarily when rolling more than 10 d12s but also when combined with other dice pools in higher amounts.
2023-05-03 19_33_26-dice run

Mislabeled buckets?

If I ask dice.run for information about 2d51 I get a distribution ranging from 2 to to 102 with a mode of 52, which is correct. However, if ask dice.run about 2d52 it says that the lowest value bucket is 2-3, the highest is 206-207 and the mode is 104-105. The lowest bucket is correct but the highest and modal buckets are about twice what they should be.

Something similar happens with 3d34 (correct) and 3d35 (about double).

The problem gets worse for higher dice rolls. 10d100 should have a mode of around 505 but shows something like 5050-5059 as the mode.

So these seems to be related to the labeling of the distributions. The error increases linearly with the bucket size. This is supported by the fact that the random result generator is unaffected and correctly generates values in range.

Can't see probability on iPad

dice.run uses cursor hover UI to tell the user the values and probabilities of each bar in the distributions. On iPad, and presumably other cursorless systems, those numbers are not visible.

Would it be possible to add tap-to-show functionality for those?

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.