Skip to main content
Loading...
20% Off your first order         +1 309 992 1394

Football Overtime Simulator Programming Fundamentals Coding

Football Overtime Simulator Programming Fundamentals Coding

Football Overtime Simulator Programming Fundamentals Coding

 

Question Description

I’m trying to study for my Programming course and I need some help to understand this question.

In this example, you will simulate a single possession of a college football overtime. In overtime, you take possession of the ball at the 25 yard line, and you try to score. In our simulation, we will assume that your kicker is awful, so you will never try for a field goal. You have to score a touchdown to win.

As in real football, you have four downs to go 10 yards. When you do go 10 yards, the downs are reset. If you fail to go 10 yards after four tries, you lose possession and, in our case, you lose the game.

In your program, you will draw the football field and the position of the ball in turtle graphics. You will ask the user what play they want to run - either a run or a pass - and they will press p to pass and r to run. If the user chooses to pass the ball, they have a 50% chance of completing the pass. If they complete the pass, it will be for between 3 and 15 yards. If they choose to run, the play will advance the ball up to 8 yards, or it could result in a loss of up to 3 yards.

After each play, you must show the current status. If they lost because they were unable to go 10 yards in 4 downs, then you should display the fact that they lost. If they win because they go to the goal line, you should display that they won. Otherwise, you should display their current down and how many yards they have to go.

The game will display both the football field and text on the input window where the player indicates what they want to do. Here is what the football field should look like:

please see the attached file for details

Do you have a similar assignment and would want someone to complete it for you? Click on the ORDER NOW option to get instant services at essayloop.com

Our Advantages

  • Quality Work
  • Unlimited Revisions
  • Affordable Pricing
  • 24/7 Support
  • Fast Delivery

Order Now

Get 20% Discount

Get 20% off on your first order