Skip to content

A tool for analyzing the probability distributions of arbitrary dice roll expressions

License

Notifications You must be signed in to change notification settings

EAGrimaldi/dice-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dice-calculator

When designing table top role playing games, it is important to understand the full complexity of the dice rolls that your design employs. However, it can be difficult to intuit the behavior of a somewhat complicated dice roll at a glance.

This tool takes arbitrary dice roll expressions and outputs information such as the probability mass function.

Work In Progress

Its kinda three-quarters finished right now. Use at your own risk.

core functionality

  • expression compiler

qol functionality

  • expression simplifier

extended dice mechanics

  • keep highest/lowest X in pool, sum those X
  • reroll lowest/highest 1 in pool, sum entire pool
  • reroll lowest/highest X in pool, sum entire pool
  • reroll any instance of minValue/maxValue in pool, sum entire pool
  • count successes over/under X in pool
  • mixed size pools for extended functions (example: roll N1dS1 and N2dS2, keep highest X from entire pool of S1+S2, sum those X)
  • mixed function pools (example: roll NdS, reroll any instance of minValue, count success over X)

About

A tool for analyzing the probability distributions of arbitrary dice roll expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages