Hi guys! I've been trying to tinker with ruby lately and came across this obstacle.
I'm trying to make a dice roller for a tabletop rpg I play with my friends.
The game uses a 'roll x dice, keep y highest' system and I'm trying to reproduce this but have been failing miserably! So for example, a character rolls 6d10 and keeps the 3 highest, which will then be summed and compared to a target number.
Can anyone shed a light please? much appreciated!
I'm trying to make a dice roller for a tabletop rpg I play with my friends.
The game uses a 'roll x dice, keep y highest' system and I'm trying to reproduce this but have been failing miserably! So for example, a character rolls 6d10 and keeps the 3 highest, which will then be summed and compared to a target number.
Can anyone shed a light please? much appreciated!