Open marqh opened 2 years ago
Heyoo, thanks for the suggestion :-)
This probably belongs in drivers/decisiondriver, which does random number stuff. If I was you i'd make the spaces around the d optional -- NdX is pretty common dnd terminology aiui.
You might find the Lexer
in package util helpful for string parsing. You can see some simple example usage in drivers/decisiondriver/decisiondriver.go, in the quoteSplit
function.
feed me tips and target points on coding and i'll happily implement
interface suggestion:
sp0rkle: roll <n> d<d>
args:
behaviour:
return dice roll number set for n dice of size d integer list based on (pseudo)random number generator
e.g.