Arthur POULET
84ef972fec
documentation: Update forge urls
1 year ago
Arthur POULET
050af10ac2
fix: Fix crystal version required
1 year ago
Arthur POULET
d85b7f5b6e
fix: update to crystal 1.0.0
1 year ago
Arthur POULET
9859028786
Merge branch 'patch-1'
5 years ago
Arthur POULET
450c67004a
Merge branch 'master' of https://github.com/Lucie-Dispot/crystal_rollable into patch-1
5 years ago
Arthur POULET
766c1cb064
Improve and fix exploding dice
5 years ago
Lucie Dispot
b13efe4adb
Fix die explosions
5 years ago
Arthur POULET
98fb5f6683
Update README
5 years ago
Arthur POULET
4e61ef0657
Fix sign to add exploding dice to Roll
5 years ago
Arthur POULET
098221f983
Add exploding dice to Roll
5 years ago
Arthur POULET
4b5c3e5ce8
Add exploding dice computations
5 years ago
Arthur POULET
958228ec9a
Add exploding attribute to dice (no stats change yet)
5 years ago
Arthur POULET
a99f7eac83
Update README
5 years ago
Arthur POULET
e9d7cf9724
Update CHANGELOG and add few documentation lines
6 years ago
Arthur POULET
fb1dd360e5
Clear coding style using inline scope declarations
6 years ago
Arthur POULET
379e48f86a
Improve Roll#parse
...
possibility to catch the errors in a block
6 years ago
Arthur POULET
1e0848480a
fix DOS attack on Die and Dice
...
note: roll parser is not protected.It should be done in the application.
6 years ago
Arthur POULET
8738322bea
Roll.compact removes empty group of die
6 years ago
Arthur POULET
c65cd2c935
add one more spec
6 years ago
Arthur POULET
282cc05ec9
Fix to_s methods for dice and roll
6 years ago
Arthur POULET
344c6fbb11
Improve lot of data
...
- Add and fix some test
- Improve api (add some functions)
- Move parsing and to_s functions to sub-directories
- Some fixes on the (to_s / compact / order) Roll's functions
6 years ago
Arthur POULET
2099c05aca
update to v0.1.1 (add changelog)
6 years ago
Arthur POULET
d089e96600
add Roll.compact! Roll.compact, and Roll.clone
6 years ago
Arthur POULET
30ee870da0
add Roll.order, Dice.clone, Die.clone
6 years ago
Arthur POULET
6805a85354
Fix <=> for Die, Dice, Roll, add Roll.order!
6 years ago
Arthur POULET
3e6860c7fa
improve <=> operator for Die, Dice, Roll
6 years ago
Arthur POULET
3b5e0b0965
Improve order calculations (Die, Dice, Roll)
...
if averages are not differents, use the maximum value. If still equals,
use the minimum as a last test
6 years ago
Arthur POULET
8bbfbf2ff9
Add Rollable.cmp (same rules than Die and Dice)
6 years ago
Arthur POULET
27ebcc03f3
Add Dice.cmp and improve Die.cmp
...
- Dice.cmp follows the same rules than Die.cmp
- Die.> Die.< Die.>= Die.<= are defined in a macro (as we assume they do compare the same type de data)
6 years ago
Arthur POULET
65867e0316
add Die.cmp methods
...
- Die.==(r) returns true if they are strictly equals
- Die.> Die.< Die.>= Die.<= and Die.<=> only check the average of the dice
6 years ago
Arthur POULET
a824d38e95
add consts (D20, ...)
6 years ago
Arthur POULET
cbd41bef4b
add travis build image
6 years ago
Arthur POULET
15d6b00c00
Merge branch 'documentation-add'
...
- add documentation for important or complex functions
- fix some english and format mistakes
6 years ago
Arthur POULET
3225879375
improve documentation
6 years ago
Arthur POULET
d49c3f1c6e
move ParsingError to Rollable
6 years ago
Arthur POULET
2f73fb70b9
Improve documentation (add, fix)
...
- Fix some references (using the `)
- Add documentation for some functions (reverse, ...)
- Improve documentation for parsing functions (add gramar, ..;)
6 years ago
Arthur POULET
88449127e1
Add to_s methods (roll.to_s, dice.to_s, die.to_s)
6 years ago
Arthur POULET
19aabec332
rename pathfinder to rollable
6 years ago
Arthur POULET
a9291709d3
update README
6 years ago
Arthur POULET
882e156710
improve documentation
6 years ago
Arthur POULET
f89e2b71f7
add some class documentation
6 years ago
Arthur POULET
6c0a4a24c9
add Roll.xxx_details
6 years ago
Arthur POULET
1f8733a4d6
add Dice.test_details
6 years ago
Arthur POULET
79bac05200
add Dice.xxx_details and few new basic specs
6 years ago
Arthur POULET
52e1e02592
improve roll parsing (strip)
6 years ago
Arthur POULET
9f6b24e7f1
finish Roll.parse, add some fix/specs
6 years ago
Arthur POULET
3d223fc717
fix Dice.parse and Dice.consume
6 years ago
Arthur POULET
899168f2b4
add Dice.consume
6 years ago
Arthur POULET
03bf6e5c59
add specs and fixes to Roll
6 years ago
Arthur POULET
abcbeaf05f
fix Dice, format, and prepare Roll spec
6 years ago