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

Matching pennies, Matching Pennies Scenario To determine who is needed t...

Matching Pennies Scenario To determine who is needed to try to to the nightly chores, 2 youngsters initial choose who are represented by "same" and who are represented by "diffe

Borel, Borel was maybe the primary to outline the notion of games of strate...

Borel was maybe the primary to outline the notion of games of strategy. He printed many papers on poker, incorporating themes of imperfect data and credibility. Whereas his writing

Simultaneous game, A simultaneous game is one during which all players buil...

A simultaneous game is one during which all players build choices (or choose a strategy) while not information of the methods that are being chosen by different players. Although t

Combination of sequential and simultanous game, To give Mom a day of rest,...

To give Mom a day of rest, Dad Plans to take his two children, Bart and Cassie, on an outing on Sunday.Bart prefers to go to the amusement park (A), Whereas Cassie prefers to go to

Case study in game theory - color coordination, Game 1 Color Coordination (...

Game 1 Color Coordination (with Delay) This game should be played twice, once without the delay tactic and once with it, to show the difference between out- comes in the s

Cournot Game, I have a problem with an exercise about Cournot game. It is v...

I have a problem with an exercise about Cournot game. It is very complex and it is composed by different question and it is impossible for me to write the complete text. I need som

Identify the pure strategy equilibria, Consider the following three games (...

Consider the following three games (Chicken, Matching Pennies, Stag Hunt): Chicken Player 2 Player 1 D V D -100;-100 10;-10 V -10; 10 -1;-1 Matching Pennies Pla

Static game, A static game is one during which all players build choices (o...

A static game is one during which all players build choices (or choose a strategy) simultaneously, while not information of the methods that are being chosen by different players.

Games with sequential moves:rollback equilibrium, Rollback shows that Boein...

Rollback shows that Boeing chooses peace over war if Airbus enters, so Airbus will enter. Rollback equilibrium entails Airbus playing “Enter” and Boeing playing “Peace if entry”; e

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