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

Ship, Ship, Captain and Crew (sometimes called Ship, Captain and Mate) was ...

Ship, Captain and Crew (sometimes called Ship, Captain and Mate) was a popular bar game played for drinks with five dice and throwing cup. Each player gets three throws. He has to

Calculate the expected payout, James and Dean are playing the Chicken game....

James and Dean are playing the Chicken game. They have noticed that their payout for being perceived as "tough" depends on the size of the crowd. The larger the crowd, the "cooler"

Determine nash equilibria, Consider the electoral competition game presente...

Consider the electoral competition game presented in Lecture 6. In this game there are two candidates who simultaneously choose policies from the real line. There is a distribution

Mixed strategy, A strategy consisting of potential moves and a chance distr...

A strategy consisting of potential moves and a chance distribution (collection of weights) that corresponds to how frequently every move is to be played. A player would solely use

Draw a table representing the prisoner?s dilemma game, (a) Draw a table rep...

(a) Draw a table representing the Prisoner?s Dilemma game. (b) Give a story inspired by real life for the prisoner?s dilemma game that is di¤erent from the story about the two crim

Bidding increment, A bidding increment is defined by the auctioneer as the ...

A bidding increment is defined by the auctioneer as the least amount above the previous bid that a new bid must be in order to be adequate to the auctioneer. For example, if the in

Backward induction, Backward induction is an iterative procedure for resolv...

Backward induction is an iterative procedure for resolving finite general form or sequential games. First, one decides the finest policy of the player who makes the last move of th

Assurance game scenario, "Assurance game" is a general name for the game m...

"Assurance game" is a general name for the game more commonly known as "Stag Hunt." The French philosopher, Jean Jacques Rousseau, presented the subsequent circumstances. Two hunte

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

Trigger strategy, can i analyse all games under trigger strategies or it''s...

can i analyse all games under trigger strategies or it''s possible just for prisoners dilemma?

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