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

Best reply dynamic, The best reply dynamic is usally termed the Cournot adj...

The best reply dynamic is usally termed the Cournot adjustment model or Cournot learning after Augustin Cournot who first proposed it in the context of a duopoly model. Each of two

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

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

English auction, A type of sequential second worth auction during which an ...

A type of sequential second worth auction during which an auctioneer directs participants to beat the present, standing bid. New bids should increase the present bid by a predefine

Game 5 all-pay acution of $10, GAME 5 All-Pay Acution of $10 Everyone ...

GAME 5 All-Pay Acution of $10 Everyone plays. Show the students a $10 bill, and announce that it is the prize; the known value of the prize guarantees that there is no winer’s

Assurance game scenario, "Assurance game" is a general name for the game m...

"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

Heuristic, A heuristic is an aid to learning, casually brought up as a rule...

A heuristic is an aid to learning, casually brought up as a rule of thumb. Formally, a heuristic may be a mechanism capable of altering its internal model of the surroundings in re

State the profit maximization problem of firm, 1. Consider two firms produc...

1. Consider two firms producing an identical product in a market where the demand is described by p = 1; 200 2Y. The corresponding cost functions are c 1 (y 1 ) = y 2 1 and c 2

Game 4 auctioning a penny jar (winner’s curse), GAME 4 Auctioning a Penny J...

GAME 4 Auctioning a Penny Jar (Winner’s Curse) Show a jar of pennies; pass it around so each student can have a closer look and form an estimate of the contents. Show the stud

Zero sum, A zero add game may be a special case of a continuing add game du...

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

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