Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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
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