bertieb
|
501d9d37db
|
Package info and ignores
|
há 3 anos |
bertieb
|
cdc9252d45
|
Move roll stats functions to class RollStats
|
há 3 anos |
bertieb
|
250695b004
|
Add individual dice and outcome counts
|
há 3 anos |
bertieb
|
d4168b7a9a
|
Initial rollstats (and add entry to tsconfig)
|
há 3 anos |
bertieb
|
2fc974aa3a
|
Don't hard code number of dice/rolls
|
há 3 anos |
bertieb
|
8c3d35fd3c
|
Export DiceResult, remove dice-counting interfaces
|
há 3 anos |
bertieb
|
c8e6b6bcf5
|
Move Asphodice class (etc) to own module
|
há 3 anos |
bertieb
|
ec315db5a4
|
export Outcomes + simplify reroll abovebelow check
|
há 3 anos |
bertieb
|
0c79af9ae2
|
Include dice.ts so tests compile correctly
|
há 3 anos |
bertieb
|
bea2bb5c66
|
Add outcomes + outcomeBalance tests
|
há 3 anos |
bertieb
|
effc85c13f
|
Rewrite tests to re-use candidates
|
há 3 anos |
bertieb
|
14f32e812f
|
Add tests using Mocha+Chai
|
há 3 anos |
bertieb
|
0f1fb9ef3b
|
'Cancel out' reroll pairs when determining re-roll
|
há 3 anos |
bertieb
|
dde3e66bf0
|
add cancelRerollDice() as helper function
Cancels out 10s and 1s, for use in rerollNeeded()
|
há 3 anos |
bertieb
|
22170650c0
|
Split reroll-determining to own function
Aids unit testing which is needed for good practice and as we
are seeing bugs creep in around unnecessary rerolls
|
há 3 anos |
bertieb
|
ac0b877685
|
Add outcome to dice result
Also start sketching out results set for aggregate results
|
há 3 anos |
bertieb
|
fd42ead81b
|
Remove unnecessary constructor(), add print line
|
há 3 anos |
bertieb
|
5730671b27
|
Rewrite inline comments in TSDoc style
|
há 3 anos |
bertieb
|
1fe526f1d5
|
Add countOutcomeBalance - balance successes/fails
|
há 3 anos |
bertieb
|
110a574b8a
|
Initial version, rolls 4 asphodice with rerolls
|
há 3 anos |