Question: Create a python program for the game of pair: The deck is randomized, and two cards are drawn. Player A gets the lower card and

Create a python program for the game of pair: The deck is randomized, and two cards are drawn. Player A gets the lower card and goes first. Player A draws, then Player B, then Player A, etc., until one of them has a pair, and that player loses. Out of 10000 hands, keep track of what fraction A wins, what fraction B wins, and the average of how many rounds are played. The deck is shown below: {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10 10 10 10 10 10 10 10 10 10}

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!