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

Bayesian game and find its bayesian equilibria, Two people are involved in ...

Two people are involved in a dispute. Person 1 does not know whether person 2 is strong or weak; she assigns probability to person 2 being strong. Person 2 is fully informed. Each

Game playing in class-equilibrium payoffs are (4, Equilibrium payoffs are (...

Equilibrium payoffs are (4, 5). Player A’s equilibrium strategy is “S then S if n and then N if n again.” Player B’s equilibrium strategy is “n if S and then n if S again and then

Beard strategy, #questi1 A, Explain how a person can be free to choose but...

#questi1 A, Explain how a person can be free to choose but his or her choices are casually determined by past event 2 B , Draw the casual tree for newcomb''s problem when Eve ca

Cardinal payoffs, Cardinal payoffs are numbers representing the outcomes of...

Cardinal payoffs are numbers representing the outcomes of a game where the numbers represent some continuum of values, such as money, market share or quantity. Cardinal payoffs per

Game playing in class, GAME PLAYING IN CLASS There are several games t...

GAME PLAYING IN CLASS There are several games that are appropriate for use on the first or second day of class. These games are simple but can be used to convey important poin

Tit for tat, A type of trigger strategy sometimes applied to the repeated P...

A type of trigger strategy sometimes applied to the repeated Prisoner's Dilemma during which a player responds in one amount with identical action her opponent utilized in the last

Rationality , One of the foremost common assumptions created in game theory...

One of the foremost common assumptions created in game theory (along with common information of rationality). In its mildest kind, rationality implies that each player is motivated

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

Calculate expected payoff, 1. The town of Sunnydale, CA is inhabited by two...

1. The town of Sunnydale, CA is inhabited by two vampires, Spike and Anya. Each night Spike and Anya independently hunt for food, which each one finds with probability 1/2 . Becaus

Asynchrony, In a repeated game it is often unspecified that players move co...

In a repeated game it is often unspecified that players move concurrently at predefined time intervals. However, if few players update their policies at different time intervals, t

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