Write a bouncing ball video game, Game Theory

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.

Posted Date: 4/6/2013 2:38:54 AM | Location : United States







Related Discussions:- Write a bouncing ball video game, Assignment Help, Ask Question on Write a bouncing ball video game, Get Answer, Expert's Help, Write a bouncing ball video game Discussions

Write discussion on Write a bouncing ball video game
Your posts are moderated
Related Questions
1. (a) True or False: If a 2x2 game has a unique pure strategy Nash Equilibrium, then both players always have dominant strategies. (b) Draw a table representing the Prisoner.s Dil

A strategy consisting of potential moves and a chance distribution (collection of weights) that corresponds to how frequently every move is to be played. A player would solely use

Two individuals use a common resource (a river or a forest, for example) to produce output. The more the resource is used, the less output any given individual can produce. Denote

the first three words are ''''the boys'' down''''. what are the last three words?

What is the Iterated Dominant Strategy Equilibrium (IDSE) and associated pay-offs? Type your answer in the following form: (c,B) , (6, 4) if you think the outcome is

A game frequently displayed in tv police dramas. 2 partners in crime are separated into separate rooms at the police station and given an identical deal. If one implicates the oppo

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

GAME Adding Numbers—Lose If Go to 100 or Over (Win at 99)   In the second ver- sion, two players again take turns choosing a number be- tween 1 and 10 (inclusive), and a cumulati

A multiunit auction mechanism for assigning heterogeneous (different) objects. The highest bidder in the first round selects one item among those offered for sale. Then, a second r

A zero add game may be a special case of a continuing add game during which all outcomes involve a add of all player's payoffs of zero. Hence, a gain for one participant is usually