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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started