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
write a program in c that takes n number finite players using gambit format and output is to be all pure strategy nash equilibrium

You and an opponent are seated at a table, and on the table is a square board. At each of the four corners of the board, there is a disc, each one red on one side and black on the

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

Tower defense - is a subgenre of real-time strategy games. The goal of tower defense games is to try to stop enemies from crossing a map by building towers which shoot at them as t

QUESTION ONE. (a) The probability that, a bomber hits a target on a bombing mission is 0.70 Three bombers are sent to bomb a particular target. (i)  What is the probabilit

1. The publishing industry in the country of Font, where the local currency is the stet, is dominated by two companies, the Arial Book Co. and Verdana Works Ltd.. Currently, both o

A uniform worth auction may be a multiunit auction during which each winning bidder pays identical worth, which can or might not be equal to the participants' bids. Alternatively,

Game Theory: (prisoner's dilemma) Consider the following 2 x 2 pricing game, where rms choose whether to price High or Low simultaneously. Find the equilibrium in dominant s

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

scenario A wife and husband ready to meet this evening, but cannot remember if they will be attending the opera or a boxing match. Husband prefers the boxing match and wife pref