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

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

Principal agent, A class of games of imperfect data during which one player...

A class of games of imperfect data during which one player (the principal) tries to supply incentives to the opposite (the agent) to encourage the agent to act within the principal

Order condition for identification, This condition is based on a counting ...

This condition is based on a counting rule of the variables included and excluded from the particular equation. It is a necessary but no sufficient condition for the identi

Combining simultaneous and sequential moves, Combining Simultaneous and...

Combining Simultaneous and  Sequential Moves The material in this chapter covers a variety of issues that require some knowledge of the analysis of both sequential- move

Game assignment, About assignment The goal of this assignment is for th...

About assignment The goal of this assignment is for the student to propose a new game of your own and to be able to present their ideas in clear and convincing manner. This pro

Identification problem, Identification is a problem of model formultion, ra...

Identification is a problem of model formultion, rather than inf nlnde! estimation or appraisal. We say a model is identified if it is in a unique statistical form, enabling unique

Payoffs, mixed strategy game with ordinal and cardinal payoffs example plea...

mixed strategy game with ordinal and cardinal payoffs example please

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

Equilibrium payoffs are (2, 3, 2). Player A’s equilib- rium strategy is “N and then N if b follows N or N if d follows N” or “Always N.” Player B’s equilibrium strategy is “b if N

Pareto optimal, Named when Vilfredo Pareto, Pareto optimality may be alive ...

Named when Vilfredo Pareto, Pareto optimality may be alive of potency. An outcome of a game is Pareto optimal if there's no different outcome that produces each player a minimum of

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