a library, a CLI and a webapp for dice rolls in Time of Legends: Joan of Arc
I'm also using that project as a use-case for exploring dev in other languages
- Typescript (original)
- Rescript
- Haskell
- Rust
npm install -g joa-dice
joa-dice <attack dices> [: <defense dices>]
where <attack dices> and <defence dices> are
nNn black combat dicesnRn red combat dicesnJn yellow combat dicesnBn white combat dicesnGn gigantic combat dicesnDn doom dices
for example:
-
joa-dice 2Ris 2 red dices in attack -
joa-dice 2R 1J : 2Nis 2 red and 1 yellow dices in attack vs 2 black dices in defence, in that case the CLI is also calculating the net attack score by substracting defence shields

