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

Low rationality, One charm of evolutionary game theory is that it permits f...

One charm of evolutionary game theory is that it permits for relaxation of the normal fully-informed rational actor assumption. People, or agents, are assumed to be myopic, within

Repeated 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 a repeated game. not like a game played once, a re

Extensive games with sumultaneous moves, consider the three player game in ...

consider the three player game in question 2 in assignment 1. Assume now that player 3 moves first. Players 1 and 2

Iterated dominant strategy equilibrium, What is the Iterated Dominant Strat...

What is the Iterated Dominant Strategy Equilibrium (IDSE) and associated pay-offs? Type your answer in the following form: (c,B) , (6, 4) if you think the outcome is

Bayes, Eighteenth century British mathematician who recognized a method for...

Eighteenth century British mathematician who recognized a method for probabilistic mathematical inference. His Bayes Theorem, published posthumously, treats probability as a logic.

Computer game zenda, Computer Game Zenda This game was invented by Jame...

Computer Game Zenda This game was invented by James Andreoni and Hal Varian; see their article, "Pre-Play Contracting in the Prisoners 'Dilemma".The paper also contains some co

Static game, A static game is one during which all players build choices (o...

A static game is one during which all players build choices (or choose a strategy) simultaneously, while not information of the methods that are being chosen by different players.

Nash equilibrium, Consider a game in which player 1 chooses rows, player 2 ...

Consider a game in which player 1 chooses rows, player 2 chooses columns and player 3 chooses matrices. Only Player 3''s payoffs are given below. Show that D is not a best response

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

Yankee auction, Yankee auction typically implies a multiunit discriminatory...

Yankee auction typically implies a multiunit discriminatory English auction. not like a Vickrey auction where every winning bidder pays identical worth for every unit, in a very ya

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