bertieb
|
d4168b7a9a
|
Initial rollstats (and add entry to tsconfig)
|
3 jaren geleden |
bertieb
|
2fc974aa3a
|
Don't hard code number of dice/rolls
|
3 jaren geleden |
bertieb
|
8c3d35fd3c
|
Export DiceResult, remove dice-counting interfaces
|
3 jaren geleden |
bertieb
|
c8e6b6bcf5
|
Move Asphodice class (etc) to own module
|
3 jaren geleden |
bertieb
|
ec315db5a4
|
export Outcomes + simplify reroll abovebelow check
|
3 jaren geleden |
bertieb
|
0c79af9ae2
|
Include dice.ts so tests compile correctly
|
3 jaren geleden |
bertieb
|
bea2bb5c66
|
Add outcomes + outcomeBalance tests
|
3 jaren geleden |
bertieb
|
effc85c13f
|
Rewrite tests to re-use candidates
|
3 jaren geleden |
bertieb
|
14f32e812f
|
Add tests using Mocha+Chai
|
3 jaren geleden |
bertieb
|
0f1fb9ef3b
|
'Cancel out' reroll pairs when determining re-roll
|
3 jaren geleden |
bertieb
|
dde3e66bf0
|
add cancelRerollDice() as helper function
Cancels out 10s and 1s, for use in rerollNeeded()
|
3 jaren geleden |
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
|
3 jaren geleden |
bertieb
|
ac0b877685
|
Add outcome to dice result
Also start sketching out results set for aggregate results
|
3 jaren geleden |
bertieb
|
fd42ead81b
|
Remove unnecessary constructor(), add print line
|
3 jaren geleden |
bertieb
|
5730671b27
|
Rewrite inline comments in TSDoc style
|
3 jaren geleden |
bertieb
|
1fe526f1d5
|
Add countOutcomeBalance - balance successes/fails
|
3 jaren geleden |
bertieb
|
110a574b8a
|
Initial version, rolls 4 asphodice with rerolls
|
3 jaren geleden |