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

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

Payoff matrix, 1. The publishing industry in the country of Font, where the...

1. The publishing industry in the country of Font, where the local currency is the stet, is dominated by two companies, the Arial Book Co. and Verdana Works Ltd.. Currently, both o

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

Pure-strategy and mixed-strategy equilibria, Take a news story, old or rece...

Take a news story, old or recent, and analyze it from a game theoretic perspective. Provide a hard copy of the source of your news story and consult relevant game theoretic literat

Matching pennies, Matching Pennies Scenario To determine who is needed t...

Matching Pennies Scenario To determine who is needed to try to to the nightly chores, 2 youngsters initial choose who are represented by "same" and who are represented by "diffe

Common information, An item of information of data in a very game is common...

An item of information of data in a very game is common grasp ledge if all of the players realize it (it is mutual grasp ledge) and every one of the players grasp that each one dif

Games sequential moves-game played b/w pitcher and batter, Problem: Consid...

Problem: Consider a (simplified) game played between a pitcher (who chooses between throwing a fastball or a curve) and a batter (who chooses which pitch to expect). The batter ha

Iterated game, When players interact by enjoying an identical stage game (s...

When players interact by enjoying an identical stage game (such because the prisoner's dilemma) varied times, the sport is termed an iterated (or repeated) game. not like a game pl

Extensive kind, The in depth kind (also referred to as a game tree) may be ...

The in depth kind (also referred to as a game tree) may be a graphical illustration of a sequential game. It provides data concerning the players, payoffs, strategies, and also the

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