Question: Write a Python program to allow the user to play a version of football. The details of our football game are as follows: The user
Write a Python program to allow the user to play a version of football. The details of our football game are as follows:
The user plays against the computer
The user gets the ball and gets a full possession to try to score
The game begins with the ball on the yard line, yards to score
The menu should allow the user to run, pass, kick, or quit
There are two types of 'run' plays, conservative and risky
There are two types of 'pass' plays, short and long
There is one type of 'kick' play, the user can try for a field goal
After the player's possession, the computer's score is randomly determined to be either or
A touchdown is points and a field goal is
Each team, user and computer, should get two full possessions, and then the game ends
You are to come up with a good balance to make the game not too hard, not too easy. Here are a few guidelines, but you are to experiment and choose exact percentages:
A risky run play should have a chance for longer runs, but also a chance to lose yards, a conservative run play should never lose yards, but should never get very long runs, maybe always through yards for example
A short pass play should have a higher chance than a long pass play, but for less yards if successful
A field goal should be only possible if under yards, use a random number through if two times the length to mean the field goal is good
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
