Question: Using C++ Write a program to deal poker hands for a 5-player game and do a Monte Carlo analysis of each. Test your method by

Using C++
Write a program to deal poker hands for a 5-player game and do a Monte Carlo analysis of each. Test your method by carrying out 500 hands under 3 conditions: 20, 100, and 200 random deals per hand. After the Monte Carlo exploration of 20, 100, or 200, deal the remaining players their real cards and see how you really did (won/lost), with the opponents selecting their best hands, not randomly choosing. Report for each condition (20/100/200) the expected likelihood of winning (to the nearest 1%) and use this to compute the overall expectation. (Hint: It should be about 20% for a 5-person game, but probably wont be exactly 20%.) Also, for each condition, report how many of the hands were actually won. For example, if your analysis led you to expect a 14% chance of winning certain hands, and you actually won 12% of those hands, your estimate was pretty accurate. If you actually won 22% (or 4%), your estimate was off. Use the squared difference as your error metric.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!