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
A payoff offerd as a bequest for someone partaking in some activity that doesn't directly provide her with profit. Often, such incentives are given to beat the ethical hazard drawb

"Assurance game" is a general name for the game more commonly known as "Stag Hunt." The French philosopher, Jean Jacques Rousseau, presented the subsequent circumstances. Two hunte

Normal 0 false false false EN-US X-NONE X-NONE

In any game, utility represents the motivations of players. A utility perform for a given player assigns variety for each potential outcome of the sport with the property that a be

When players interact by enjoying an identical stage game (such because the prisoner's dilemma) varied times, the sport is termed a repeated game. not like a game played once, a re

A multiunit auction that during which within which  each winning bidder pays a unique worth which depends on the particular bid placed by every winning participant. Alternatively,

What terms are included in the monopolistic competition? Product Differentiation: 1. The meaning of monopolistic competition and product differentiation 2. Why monopolist

A strategy sometimes applied to repeated prisoner's dilemmas during which a player begins by cooperating however defects to cheating for a predefined amount of your time as a respo

#questi1 A, Explain how a person can be free to choose but his or her choices are casually determined by past event 2 B , Draw the casual tree for newcomb''s problem when Eve ca

Ordinal payoffs are numbers representing the outcomes of a game where the worth of the numbers isn't vital, however solely the ordering of numbers. for instance, when solving for a