bertieb
2f032f5c37
Update test paths
pirms 3 gadiem
bertieb
75385132a9
Add gulp for automated builds & Boostrap for FE
Can now build all with 'gulp' (if gulp-cli installed)
Big commit. Breakdown:
- .gitignore includes gulpfile.js (otehrwise excluded)
- gulpfile sets up build steps + browsersync
- src/ files for FE (stub for now)
- moved ts to src/ for consistency
- update tsconfig with new paths
- package.json lists new reqs
pirms 3 gadiem
bertieb
501d9d37db
Package info and ignores
pirms 3 gadiem
bertieb
cdc9252d45
Move roll stats functions to class RollStats
pirms 3 gadiem
bertieb
250695b004
Add individual dice and outcome counts
pirms 3 gadiem
bertieb
d4168b7a9a
Initial rollstats (and add entry to tsconfig)
pirms 3 gadiem
bertieb
2fc974aa3a
Don't hard code number of dice/rolls
pirms 3 gadiem
bertieb
8c3d35fd3c
Export DiceResult, remove dice-counting interfaces
pirms 3 gadiem
bertieb
c8e6b6bcf5
Move Asphodice class (etc) to own module
pirms 3 gadiem
bertieb
ec315db5a4
export Outcomes + simplify reroll abovebelow check
pirms 3 gadiem
bertieb
0c79af9ae2
Include dice.ts so tests compile correctly
pirms 3 gadiem
bertieb
bea2bb5c66
Add outcomes + outcomeBalance tests
pirms 3 gadiem
bertieb
effc85c13f
Rewrite tests to re-use candidates
pirms 3 gadiem
bertieb
14f32e812f
Add tests using Mocha+Chai
pirms 3 gadiem
bertieb
0f1fb9ef3b
'Cancel out' reroll pairs when determining re-roll
pirms 3 gadiem
bertieb
dde3e66bf0
add cancelRerollDice() as helper function
Cancels out 10s and 1s, for use in rerollNeeded()
pirms 3 gadiem
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
pirms 3 gadiem
bertieb
ac0b877685
Add outcome to dice result
Also start sketching out results set for aggregate results
pirms 3 gadiem
bertieb
fd42ead81b
Remove unnecessary constructor(), add print line
pirms 3 gadiem
bertieb
5730671b27
Rewrite inline comments in TSDoc style
pirms 3 gadiem
bertieb
1fe526f1d5
Add countOutcomeBalance - balance successes/fails
pirms 3 gadiem
bertieb
110a574b8a
Initial version, rolls 4 asphodice with rerolls
pirms 3 gadiem