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

Find the nash equilibria of game - bimatrix of strategies, Players 1 and 2 ...

Players 1 and 2 are bargaining over how to split one dollar. Both players simultaneously name shares they would like to keep s 1 and s 2 . Furthermore, players' choices have to be

Fictitious play , A method by that players assume that the methods of their...

A method by that players assume that the methods of their opponents are randomly chosen from some unknown stationary distribution. In every amount, a player selects her best respon

Case study in game theory - color coordination, Game 1 Color Coordination (...

Game 1 Color Coordination (with Delay) This game should be played twice, once without the delay tactic and once with it, to show the difference between out- comes in the s

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,

Evolutionary game theory, Evolutionary game theory provides a dynamic frame...

Evolutionary game theory provides a dynamic framework for analyzing repeated interaction. Originally modeled when "natural models" of fitness, a population might contains folks gen

Find all nash equilibria of game- game theory, Game Theory: (prisoner'...

Game Theory: (prisoner's dilemma) Consider the following 2 x 2 pricing game, where rms choose whether to price High or Low simultaneously. Find the equilibrium in dominant s

Cournot Game, I have a problem with an exercise about Cournot game. It is v...

I have a problem with an exercise about Cournot game. It is very complex and it is composed by different question and it is impossible for me to write the complete text. I need som

Multiple item auction, Normal 0 false false false EN-US...

Normal 0 false false false EN-US X-NONE X-NONE

Bidder''s choice, A multiunit auction mechanism for assigning heterogeneous...

A multiunit auction mechanism for assigning heterogeneous (different) objects. The highest bidder in the first round selects one item among those offered for sale. Then, a second r

Zero sum, A zero add game may be a special case of a continuing add game du...

A zero add game may be a special case of a continuing add game during which all outcomes involve a add of all player's payoffs of zero. Hence, a gain for one participant is usually

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