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

Discriminatory auction, A multiunit auction that during which within which ...

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,

Formulate the situation as strategic game - nash equilibrium, Two individua...

Two individuals use a common resource (a river or a forest, for example) to produce output. The more the resource is used, the less output any given individual can produce. Denote

Animal puzzle, a) This you just have to list all the attributes for the pro...

a) This you just have to list all the attributes for the program. i.e. unique id's for puzzle pieces, attributes for the puzzle like a data field for the number of edges, methods t

Explain the financial system terms definitions, Explain the financial syste...

Explain the financial system terms definitions. The Financial System Definitions: Wealth It is sum of Current Savings and Accumulated Savings Financial asset P

Rules of snake eyes game, Rules of Snake Eyes (small variation on game call...

Rules of Snake Eyes (small variation on game called Craps in USA) Player rolls two dice. On the first roll if the total of the dice is 2 (snake eyes): player wins and rece

Paradox of identification, Discussion in the preceding section suggests tha...

Discussion in the preceding section suggests that if we want to measure a given hnction belonging to a simultaneous-equations model, the hnction must be fairly stable over the samp

All pure nash equilibrium for strategic form game, write a program in c tha...

write a program in c that takes n number finite players using gambit format and output is to be all pure strategy nash equilibrium

Write two methods for the mouse trap game, Write two methods for the mouse ...

Write two methods for the mouse trap game (using your board created in Assignment 3) and an event handler (another method) to test the two methods. 1. world.raise(item) where

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

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