Question: In Python Part VI: War Variant #2: Scouting (30 points) Complete the function play.with scouts (), which takes two arguments, in this order: 1, player

 In Python Part VI: War Variant #2: Scouting (30 points) Complete
the function play.with scouts (), which takes two arguments, in this order:
1, player 1: a Player object that represents Player #1 2, player
2: a Player object that represents Player #2 This function provides an
In Python

Part VI: War Variant #2: Scouting (30 points) Complete the function play.with scouts (), which takes two arguments, in this order: 1, player 1: a Player object that represents Player #1 2, player 2: a Player object that represents Player #2 This function provides an alternate form of gameplay to the rules implemented in the play normal.round function. Play proceeds as in normal gameplay except when a player draws a card of rank 5 or lower (i.e., 2, 3, 4 or 5). In such cases, if the player has at least one more card in his hand, the player scouts by drawing a second card from his hand. The combined value of the first card played and the scouted card is the value used in the battle (with J 11,Q 12, K 13, A-14). If the player is unable to draw a second card (because he has run out of cards), then the round simply continues as normal. Here is an example: Player 1 drew 9 Player 2 drew 5 Player 2 drew K Player 2 won the round, scoring 3 points. CSE 101-Spring 2018 Homework #5 Page 5 Player #1's 9 of Clubs is valued at 9, whereas Player #2's 5 and King together are valued at 18 (18-5 + 13). Therefore, Player #2 wins the round. Since 3 total cards were draw this round, the winner earns 3 points

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!