Track the current position and direction of the ball

Assignment Help Python Programming
Reference no: EM131327347

Python Code

Your version of pong will be more complete and have the following features at a minimum:

1) The scores for each player should be displayed

2) Option for ball speed - Choose between three different speed levels: slow/medium/fast

3) Option for player paddle size - Choose between three different paddle sizes for the player: small/medium/large

4) Option for game length - Choose between three game lengths: 7/15/21 points

5) Option for opponent - Choose between a two player game and a one player game against an automated paddle

6) Automated paddle - If the player chooses to play against an automated paddle, your program should control the motion of the paddle. You can track the current position and direction of the ball to estimate whether it should move up or down from its current position.

7) Expanding net - in addition to having the ball bounce off of the walls and paddles, there will be an additional obstacle the ball must avoid. There should be an object moving up and down in the middle of the screen, essentially a moving net. The net size should be relatively small in the beginning of a point so that it is not too hard to have the ball avoid it. However, every time the ball hits it, the ball should bounce off of it as if it were a wall and the size of this net object should grow and the net should begin to move a little faster. The net should never get as big as the entire screen, so that there is always some chance of getting the ball through.

These are the basic features that your game should have. You can add in other options and features such as changing ball speed and paddle size after a certain number of hits, moving the ball in a squiggly direction rather than always straight, etc. You should submit your code and any additional images or other things that you need to run the program.

Reference no: EM131327347

Questions Cloud

What is the interest rate on the loan : A fully amortizing mortgage is made for $100,000 at 6.5 percent interest. If the monthly payments are $1,000 per month, when will the loan be repaid?
What must monthly payments be over the 10 year period : If the interest rate is 7 percent, what must monthly payments be over the 10-year period?- If the borrower chooses to repay the loan after 5 years instead of at the end of year 10, what must the loan balance be?
What will the monthly payments be : What will the monthly payments be?- What will be the loan balance after 5 years?- If the loan is repaid after 5 years, what will be the yield to the lender?
Track the current position and direction of the ball : If the player chooses to play against an automated paddle, your program should control the motion of the paddle. You can track the current position and direction of the ball to estimate whether it should move up or down from its current position.
Contemporary theories to support your evaluation : Demonstrate a systematic understanding and critical appreciation of theories and models of creativity, innovation and change management in the context of contemporary organisations.
Why did preston brooks beat him so mercilessly : Why did Preston Brooks beat him so mercilessly? What you need to keep in mind at this point is that, at this point in time, slavery is not only not illegal but it is a constitutional protected institution. Not only the right to own slaves, but th..
What must the loan balance be if it is repaid after year 4 : What must the loan balance be if it is repaid after year 4? What will be the yield to the lender if the loan is repaid at the end of year 4?
With all of the investment to be made at the outset : A Japanese electronics manufacturer is contemplating investing $1 billion (with all of the investment to be made at the outset) in a 10-year investment project in the U.S. The Japanese company is well known in world capital markets and is universally..

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd