Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 506876a8ea
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.666 kB

pig - dice game instructions + analysis + monte carlo simulation

HOMEPAGE

Wikipedia: Pig

REQUIREMENTS

CONTENTS

  • analysis.pdf - Statistical analysis
  • pig.hs - Monte Carlo simulation in Haskell

EXAMPLE

$ make
$ ./pig
Running 10000 games...
Totaling wins...

Roll Six       32%
Roll Five      28%
Roll K Times   27%
100 or Bust    8%
Roll Bad K     3%
Always Hold    0%
Always Roll    0%
Roll Once      0%
Jump to Line
Something went wrong with that request. Please try again.