Video Poker project in Java

Probability of getting awarded hands

The following table shows the statistics for each possible hand regarding 1 thousand rounds of 1 million bets each. These statistics might be compared with the ones in the site in which the project was inspired.

Name of hand Average number of hits in 1M rounds [1]ProbabilityProbability given in the site
Jacks or Better188206 18.820719.24
Two Pair 124262 12.426212.47
Three of a Kind72162 7.21627.22
Straight 14650 1.46511.50
Flush 15260 1.52611.50
Full House 11192 1.11921.12
Four 5-K 1607 0.16070.16
Four 2-4 522 0.05230.05
Four Aces 201 0.02010.02
Straight Flush 110 0.01110.01
Royal Flush 19 0.00190.002
Other 571803 57.180356.71

[1] Average of hits in 1m sequences of 1M rounds each

Percentage of return regarding the amount bet in each round

The following table shows the percentage of return regarding the amount bet in each round. These results were obtained as an average of return percentage of 1 thousand sequences, each one with 1 million bets each. It is also shown the confidence interval of 95% for the previous results.

Amount for each betAverage returnConfidence Interval
198.5736[97.8057, 99.3241]
297.2186[95.6812, 98.8322]
395.8337[93.6151, 98.1100]
494.4357[91.2880, 97.5112]
598.2470[93.3180, 103.5335]

The image that follows contains the histograms whose analysis produced the results above.

UML

A working demo of the project can be downloaded here and a full report in portuguese can be found here.