bertieb
0799b45039
Add charts to frontend (Chart.js)
This is still pretty quick and dirty, with lots of refactoring and
general tidying up ahead; but it gives an example structure to start
from
il y a 3 ans
bertieb
b15ccf90c4
Add quick-and-dirty FE
Emphasis on the dirty, not so much 'quick' ! This shows select outputs
from the default Asphodice class:
- rerolls
- outcome balance
- outcomes
This information is presented in a Bootstrap card:
https://getbootstrap.com/docs/5.0/components/card/
il y a 3 ans
bertieb
498412fca0
Add basic frontend (jQuery+Bootstrap) stub
il y a 3 ans
bertieb
bae389fc53
Add watchify, browserify & other deps
In dev mode this means changes to ts files can now be watched
live.
il y a 3 ans
bertieb
5591e0a904
Add README
il y a 3 ans
bertieb
2f032f5c37
Update test paths
il y a 3 ans
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
il y a 3 ans
bertieb
501d9d37db
Package info and ignores
il y a 3 ans
bertieb
cdc9252d45
Move roll stats functions to class RollStats
il y a 3 ans
bertieb
250695b004
Add individual dice and outcome counts
il y a 3 ans
bertieb
d4168b7a9a
Initial rollstats (and add entry to tsconfig)
il y a 3 ans
bertieb
2fc974aa3a
Don't hard code number of dice/rolls
il y a 3 ans
bertieb
8c3d35fd3c
Export DiceResult, remove dice-counting interfaces
il y a 3 ans
bertieb
c8e6b6bcf5
Move Asphodice class (etc) to own module
il y a 3 ans
bertieb
ec315db5a4
export Outcomes + simplify reroll abovebelow check
il y a 3 ans
bertieb
0c79af9ae2
Include dice.ts so tests compile correctly
il y a 3 ans
bertieb
bea2bb5c66
Add outcomes + outcomeBalance tests
il y a 3 ans
bertieb
effc85c13f
Rewrite tests to re-use candidates
il y a 3 ans
bertieb
14f32e812f
Add tests using Mocha+Chai
il y a 3 ans
bertieb
0f1fb9ef3b
'Cancel out' reroll pairs when determining re-roll
il y a 3 ans
bertieb
dde3e66bf0
add cancelRerollDice() as helper function
Cancels out 10s and 1s, for use in rerollNeeded()
il y a 3 ans
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
il y a 3 ans
bertieb
ac0b877685
Add outcome to dice result
Also start sketching out results set for aggregate results
il y a 3 ans
bertieb
fd42ead81b
Remove unnecessary constructor(), add print line
il y a 3 ans
bertieb
5730671b27
Rewrite inline comments in TSDoc style
il y a 3 ans
bertieb
1fe526f1d5
Add countOutcomeBalance - balance successes/fails
il y a 3 ans
bertieb
110a574b8a
Initial version, rolls 4 asphodice with rerolls
il y a 3 ans