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

Deadlock , Description The simplest of William Poundstone's social dilem...

Description The simplest of William Poundstone's social dilemmas during which the every player contains a dominant strategy and also the equilibrium is Pareto optimal. the sole

Procurement auction, A market mechanism during which an object, service, or...

A market mechanism during which an object, service, or set of objects is being purchased, instead of sold, to the auctioneer. The auction provides a selected set of rules which wil

Button auction, A form of a Japanese auction (which is a form of an English...

A form of a Japanese auction (which is a form of an English auction) in which bidders hold down a button as the auctioneer frequently increases the current price. Bidders irrevocab

Multiple nash equilibria, The following is a payoff matrix for a non-cooper...

The following is a payoff matrix for a non-cooperative simultaneous move game between 2 players. The payoffs are in the order (Player 1; Player 2): What is/are the Nash Equil

Perfect data, A sequential game is {one of|one among|one in all|one amongst...

A sequential game is {one of|one among|one in all|one amongst|one in each of} excellent data if just one player moves at a time and if every player is aware of each action of the p

Uniform worth, A uniform worth auction may be a multiunit auction during wh...

A uniform worth auction may be a multiunit auction during which each winning bidder pays identical worth, which can or might not be equal to the participants' bids. Alternatively,

Bidder, An auction associates who submits offers (or bids) to sale or buy  ...

An auction associates who submits offers (or bids) to sale or buy  the goods being auctioned.

Perfect nash equilibrium, Perfect Nash equilibrium Two students prepar...

Perfect Nash equilibrium Two students prepare their homework assignment together for a course. They both enjoy getting high grade for their assignment, but they dislike workin

Game :the tire story, GAME 2 The Tire Story Another game that we have ...

GAME 2 The Tire Story Another game that we have successfully played in the first lecture is based on the “We can’t take the exam; we had a flat tire”. Even if the students hav

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