Thread Rating:

abacabb
abacabb
Joined: Aug 30, 2014
  • Threads: 11
  • Posts: 56
June 6th, 2015 at 7:23:17 PM permalink
Here's my code. Compile with your favorite C compiler.

http://pastebin.com/WqGGhGJ0

Then create a file for the payout schedule.

http://pastebin.com/jLcfsBpC

Assuming you call your file schedule, then invoke the program as follows
executable schedule <trials> <hands per trial> <loss>

As an example, the below run produces the output below
./a.out schedule 500000 6000 -510

8276 trials out of 500000 worse than a final result of of -510 (1.655200%)
12491 trials out of 500000 worse than a loss of -510 (2.498200%)

  • Jump to: