Question: how to code in python please Part III: Play One Round (20 points) Complete the function play normal round (), which takes twos arguments, in

how to code in python pleasehow to code in python please Part III: Play One Round (20points) Complete the function play normal round (), which takes twos arguments,

Part III: Play One Round (20 points) Complete the function play normal round (), which takes twos arguments, in this order: 1. player!: a Player object that represents Player #1 2, player2: a Player object that represents Player #2 Each Player object has equal number of Card objects in its .cards attribute. The function draws cards from each player's hand (use the draw.card () method in the Player class) until a player wins the round or the players run out of cards. Here is an example of how you might have Player #1 draw a card: player1_card -playerl.draw_card ) If, on the first draw, the rank of Player #1's card is greater than the rank of Player #2's card, then Player #1 wins the round and the function returns the tuple ( 1, 2) , where l indicates Player #1 and 2 indicates the points won by the player. The function also adds 2 to player 1-score. As in the real War card game, Player #1 earns 2 points because he "wins" two cards: his own, as well as Player #2's card. The cards are discarded and are not added to either player's card list. Similarly, if the rank of Player #2's card is greater than the rank of Player #1's card, then Player #2 wins the round and the function returns the tuple (2, 2 ) . The function also adds 2 to player2. score. Here is an example: Part III: Play One Round (20 points) Complete the function play normal round (), which takes twos arguments, in this order: 1. player!: a Player object that represents Player #1 2, player2: a Player object that represents Player #2 Each Player object has equal number of Card objects in its .cards attribute. The function draws cards from each player's hand (use the draw.card () method in the Player class) until a player wins the round or the players run out of cards. Here is an example of how you might have Player #1 draw a card: player1_card -playerl.draw_card ) If, on the first draw, the rank of Player #1's card is greater than the rank of Player #2's card, then Player #1 wins the round and the function returns the tuple ( 1, 2) , where l indicates Player #1 and 2 indicates the points won by the player. The function also adds 2 to player 1-score. As in the real War card game, Player #1 earns 2 points because he "wins" two cards: his own, as well as Player #2's card. The cards are discarded and are not added to either player's card list. Similarly, if the rank of Player #2's card is greater than the rank of Player #1's card, then Player #2 wins the round and the function returns the tuple (2, 2 ) . The function also adds 2 to player2. score. Here is an example

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!