A dice probability calculator in multiple languages
C Java Smalltalk JavaScript Racket Haskell Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
compC.sh
compHaskell.sh
compJava.sh
compRacket.sh
dice.c Got constant adders working in C version. May 4, 2012
dice.hs
dice.java
dice.js
dice.lua
dice.php
dice.pl
dice.py
dice.rb
dice.rkt
dice.st

README.md

Dice

A dice probability calculator in multiple languages

Usage:

[prog] [ XdY | constant ] ...

Frex:

lua dice.lua 1d4 1d6 1d8 1d12 -17
nodejs dice.js 1d4 1d6 1d8 1d12 -17
perl dice.pl 1d4 1d6 1d8 1d12 -17
php dice.php 1d4 1d6 1d8 1d12 -17
python dice.py 1d4 1d6 1d8 1d12 -17
ruby dice.rb 1d4 1d6 1d8 1d12 -17
gst -f dice.st 1d4 1d6 1d8 1d12 -17

sh compC.sh
c.exe 1d4 1d6 1d8 1d12 -17

sh compHaskell.sh
haskell.exe 1d4 1d6 1d8 1d12 -17

sh compJava.sh
java dice 1d4 1d6 1d8 1d12 -17

sh compRacket.sh
racket.exe 1d4 1d6 1d8 1d12 -17