Write a program that should control the motion of paddle

Assignment Help Python Programming
Reference no: EM131317606

Python program: super pong

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. Yyou 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: EM131317606

Questions Cloud

Contrast the underlying concepts : Compare and contrast the underlying concepts for the following:
How is the surface current density vector defined : How is the surface current density vector defined? Distinguish it from the volume current density vector.
Why are most corporate bonds callable : Why are most corporate bonds callable? Who benefits from this feature, and what is the cost of adopting a call provision in a public bond issue?
What is the net advantage to leasing : Lease or Buy Assume that the tax rate is 35 percent. You can borrow at 8 percent before taxes. Should the company lease or buy? (Calculate the Net Advantage to Leasing vs. Buying and see if it is positive or negative.) What is the Net Advantage to Le..
Write a program that should control the motion of 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.
What risk does an investor run from holding bearer bonds : What is a Eurobond? Why did these bonds come into existence? Why do Eurobond investors like the fact that these are typically "bearer bonds"?
Find the magnetic field adjacent to the current sheet : If the current density on the infinite plane current sheet of Figure 4.2 were directed in the positive y-direction, what would be the directions of the magnetic field adjacent to the current sheet and on either side of it?
Determining the hedge with derivatives : A Chinese company located in Shanghai is due to pay 7,754,300 HKD onDecember 31st. 2016 (Now October 1st.) they want to use a derivative to hedge the risk they are exposed to. Please enlighten them listing the advantages, disadvantages, potential ..
Distinguish an operating asset : Distinguish an operating asset from a financial (non-operating) asset.

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