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

Fixed worth auction, Not technically an auction, however a posted-price pro...

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

Multiple item auction, Normal 0 false false false EN-US...

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

Tic tac toe, i have to make a tic tac toe game in matlab i dun have any ide...

i have to make a tic tac toe game in matlab i dun have any idea what to do?

Perfect data, A sequential game is one among one in all if just one player ...

A sequential game is one among one in all if just one player moves at a time and if every player is aware of each action of the players that moved before him at every purpose. Tech

Explain oligopoly''s structure and use game theory, Explain oligopoly's str...

Explain oligopoly's structure and use game theory to explain why oligopoly firms tend not to use price to compete. Answer- Oligopoly is an imperfect market where there are

Auction, A market mechanism in which a service, objects, or set of objects,...

A market mechanism in which a service, objects, or set of objects, is swapped on the basis of bids submitted by member. Auctions offer a precise set of rules that will rule the pur

Normal kind, The normal kind may be a matrix illustration of a simultaneous...

The normal kind may be a matrix illustration of a simultaneous game. For 2 players, one is that the "row" player, and also the different, the "column" player. Every rows or column

Edgeworth, Living from 1845 to 1926, Edgeworth's contributions to Economics...

Living from 1845 to 1926, Edgeworth's contributions to Economics still influence trendy game theorists. His Mathematical Psychics printed in 1881, demonstrated the notion of compet

Game:adding numbers—lose if go to 100 or over (win at 99), GAME Adding Numb...

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

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