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

Bernoulli, Eighteenth century Dutch mathematician codified the notion of ex...

Eighteenth century Dutch mathematician codified the notion of expected utility as a revolutionary approach to risk. He noted that folks don't maximize expected returns however expe

Prisoners'' dilemma scenario, Scenario Two conspirators are arrested an...

Scenario Two conspirators are arrested and interrogated separately. If one implicates the opposite, he might go free whereas the opposite receives a life sentence. Yet, if each

Rollback , Rollback (often referred to as backward induction) is an iterati...

Rollback (often referred to as backward induction) is an iterative method for solving finite in depth kind or sequential games. First, one determines the optimal strategy of the pl

Proxy bidder , A proxy bidder represents the interests of a bidder not phys...

A proxy bidder represents the interests of a bidder not physically gift at the auction. Typically, the bidder can inform his proxy of the most quantity he's willing to pay, and als

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

How to make game, I wanna know the language to make games

I wanna know the language to make games

Maximization problem, Two individuals (i ∈ {1, 2}) work independently on a ...

Two individuals (i ∈ {1, 2}) work independently on a joint project. They each independently decide how much e ort ei they put. E ort choice has to be any real number between 0 and

Rock paper scissors, Scenario To determine who is needed to try to to th...

Scenario To determine who is needed to try to to the nightly chores, 2 youngsters simultaneously build one among 3 symbols with their fists - a rock, paper, or scissors. straigh

Single unit auction, An auction during which just one item is on the market...

An auction during which just one item is on the market for sale. Procedures embody English, Dutch, and sealed bid auctions. When multiple units are sold in one auction, the auction

Player , Any participant in a very game who (i)  contains a nontrivial s...

Any participant in a very game who (i)  contains a nontrivial set of methods (more than one) and (ii) Selects among the methods primarily based on payoffs. If a player is non

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