Initial commit
Initial commit
Merge branch 'master' of https://github.com/ccooke/d20code
added some output
Fixed a bug with explode/penetrate
Detect invalid reroll modifiers
Add a density class and methods to calculate basic die densities...
syntax fixes
made term a class from which die, number, etc inherit
removed old methods, several fixed errors
outline how to calculate densities
made all die density methods to class initializers of a corresponding class, fixed some errors
made dice.rb load densities.rb, removed all tests to an external test.rb file, added prelimenary density calculations to dice.rb
fix
require_relative instead of load, also print the probability that X<=5
update the README
fix
nicer test output
fix: to reset a key, delete it, don't set it to the default value! Compound- and PenetratingDieDensity now generate true densities under the assumption that maxpenetrate resp. maxcompound is bounded (by default by 10).
added a density method to the Parser, negative signs work now