Question: In this lab you will write a program that will simulate a modified version of the War game. please make sure you sre commenting the

In this lab you will write a program that will simulate a modified version of the "War" game. please make sure you sre commenting the code and use whitespace. it should inlcude comments, comments before each block of code describing describing what your code is doing
 In this lab you will write a program that will simulate

Lab 5 (15 pts) In this lab, you will write a program that will simulate a modified version of the "War" card game. Rules are as follows: 1. It will be a two player game. You will have the user enter both player's names. 2. The computer will generate a random number between 1 and 13 for each player. 3. The player with the higher number gets a point. 4. If both players get the same number, then it's a draw. 5. First player to get 10 points wins the game. . . The program should indicate what number was generated for each player. If both numbers were the same, program should display "Both numbers were equal" The program should tally up the score for each player and display the final score at the end. The program should display which player won the game. . . Deliverables: 1. A well-documented working python program (py file) Sample output on next page

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!