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
Equilibrium payoffs a) The reward system changes payoffs for Player A, but does not change the equilibrium strategies in the game. Player A still takes the money at the fir

Paired Prisoners' Dilemma Students can be paired off and instructed to play several ver-sions of a particular game with a prisoners' dilemma structure.Provide each pair with a

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

Three flowcharts and the game board for your mousetrap game should be submitted. You can use board_design.pdf to help you lay out your board. Basically, you can use any shapes you

1.a.out 2 1 Here is the grid that has been generated: 1 1 1 0 0 0 0 0 1 1 0 1 0 0 1 1 1 1 0 0 1 1 1 1 0 1 1 0 0 1 1 0 0 1 0 1 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 1 0

Not technically an auction, however a posted-price procedure during which the auctioneer sets a worth and sells to the primary bidder willing to pay it. The auction ends as soon as

One charm of evolutionary game theory is that it permits for relaxation of the normal fully-informed rational actor assumption. People, or agents, are assumed to be myopic, within

About assignment The goal of this assignment is for the student to propose a new game of your own and to be able to present their ideas in clear and convincing manner. This pro

Scenario Any game during which the identity of the player doesn't amendment the ensuing game facing that player is symmetric. In different words, every player earns identical pa

An item of information of data in a very game is common grasp ledge if all of the players realize it (it is mutual grasp ledge) and every one of the players grasp that each one dif