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

State the profit maximization problem of firm, 1. Consider two firms produc...

1. Consider two firms producing an identical product in a market where the demand is described by p = 1; 200 2Y. The corresponding cost functions are c 1 (y 1 ) = y 2 1 and c 2

Assurance game, Assurance game Scenario "Assurance game" may be a generi...

Assurance game Scenario "Assurance game" may be a generic name for the sport a lot of commonly called "Stag Hunt." The French thinker, Jean Jacques Rousseau, presented the subse

Determine the pure strategy nash equilibria, a) Define the term Nash equili...

a) Define the term Nash equilibrium b) You are given the following pay-off matrix:   Strategies for player 1   Strategies for player 2

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

Temporary game theory history , The ideas underlying game theory have appea...

The ideas underlying game theory have appeared throughout history, apparent within the bible, the Talmud, the works of Descartes and Sun Tzu, and also the writings of Chales Darwin

Asynchrony, In a repeated game it is often unspecified that players move co...

In a repeated game it is often unspecified that players move concurrently at predefined time intervals. However, if few players update their policies at different time intervals, t

Kakutani, Twentieth century mathematician who expanded on earlier fastened ...

Twentieth century mathematician who expanded on earlier fastened purpose theorems. a hard and fast purpose theorem defines the conditions on a perform, f(x), beneath that there exi

Player , Any participant in a very game who (i)  contains a nontrivial s...

Any participant in a very game who (i)  contains a nontrivial set of methods (more than one) and (ii) Selects among the methods primarily based on payoffs. If a player is non

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

Nature , The title of a "player" who selects from among her methods randoml...

The title of a "player" who selects from among her methods randomly, primarily based on some predetermined chance distribution, instead of strategically, primarily based on payoffs

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