Write a bouncing ball video game, Game Theory

Assignment Help:

Write a bouncing ball video game. The game is similar to the one described and depicted in

The balls bounce within the screen where the two horizontal walls are fixed. The two vertical walls are bounded by the two paddles. Each paddle is a third of the height of the screen. The user presses keys to move the paddles up and down. Your task is to control the two paddles to keep the ball bouncing within the screen to simulate two players playing the ball. The game stops when one player wins or when the time is up. A player wins if the ball bounces out from the other player's side.

1727_terminal.png

Figure: Game Screenshot

Requirements

1. Initially, the ball is placed at the center of the screen. The ball starts moving with a steady speed when the user presses a key. See Figure 1 for a screenshot.

When the ball hits a wall it should bounce off it.

2. You may reference bounce2d.c and associated code from your text book or write your own using the techniques and functions covered in lecture 7.

3. You may assign any key combination to move the paddles, but each paddle must be able to be moved independently.

What to submit

1. Your resolution logic or pseudo code (no more than two pages).

2. Your test plan and output. The limitations if your program does not run or does not output the expected result.

3. Your source code.

4. A simple user's manual with instructions on how to play your game.


Related Discussions:- Write a bouncing ball video game

Pareto dominated, An outcome of a game is Pareto dominated if another outco...

An outcome of a game is Pareto dominated if another outcome would build a minimum of one player at an advantage while not hurting the other player. That is, another outcome is weak

Game playing in class, GAME PLAYING IN CLASS There are several games t...

GAME PLAYING IN CLASS There are several games that are appropriate for use on the first or second day of class. These games are simple but can be used to convey important poin

Yankee auction, Yankee auction typically implies a multiunit discriminatory...

Yankee auction typically implies a multiunit discriminatory English auction. not like a Vickrey auction where every winning bidder pays identical worth for every unit, in a very ya

Pareto economical , Named when Vilfredo Pareto, Pareto potency (or Pareto o...

Named when Vilfredo Pareto, Pareto potency (or Pareto optimality) may be alive of potency. An outcome of a game is Pareto economical if there's no different outcome that produces e

Game Theory Assignment, Please let me know if you can assist with the follo...

Please let me know if you can assist with the following assignment immediately. http://www.viewdocsonline.com/document/vkz2u6

All pure nash equilibrium for strategic form game, write a program in c tha...

write a program in c that takes n number finite players using gambit format and output is to be all pure strategy nash equilibrium

Bernoulli, Eighteenth century Dutch mathematician codified the notion of ex...

Eighteenth century Dutch mathematician codified the notion of expected utility as a revolutionary approach to risk. He noted that folks don't maximize expected returns however expe

Determine nash equilibria, Consider the electoral competition game presente...

Consider the electoral competition game presented in Lecture 6. In this game there are two candidates who simultaneously choose policies from the real line. There is a distribution

Multiunit auction, An auction during which many (more than one) things are ...

An auction during which many (more than one) things are offered for sale. Mechanisms for allocating multiple units embody discriminatory and uniform worth auctions.

Game of chicken, Scenario Two hooligans with one thing to prove drive at...

Scenario Two hooligans with one thing to prove drive at one another on a slender road. the primary to swerve loses faces among his peers. If neither swerves, however, a terminal

Write Your Message!

Captcha
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