Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A dice probability calculator in multiple languages
C Java Smalltalk JavaScript Racket Haskell Other
Branch: master
Failed to load latest commit information.
README.md
compC.sh
compHaskell.sh
compJava.sh
compRacket.sh
dice.c
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

Something went wrong with that request. Please try again.