Provide a way to reset the game

Assignment Help JAVA Programming
Reference no: EM131507929

Assignment: Brickles

Need solution for

https://www.expertsmind.com/questions/program-for-users-to-play-the-game-of-brick-30137058.aspx

Task

Write a Java program that allows users to play the game of Brickles. Download and unzip Brickles.zip, which provides a skeleton version of the program (note: it is up to you whether you want to use the skeleton). The program uses a predefined component, named BrickWall (provided in BrickWall.jar), to implement the game field. Consult the file javadoc/index.html for API information about BrickWall and its associated listener and event classes (CollisionEvent and CollisionListener). Note: (i) only use the provided BrickWall game field rather than implementing your own, and (ii) you need to include the BrickWall.jar file in your classpath by adding it to the Libraries in your NetBeans project.

Background
Games usually have relatively simple interfaces but need to be designed with considerable attention to appearance and aesthetics. The player will want to have the current state of the game clearly displayed during play, but will not want the screen cluttered up with less important information that is only needed occasionally. There are no hard and fast rules; you're welcome to implement the interface any way you think appropriate. Your goal here is to make a game that is "playable". Without going overboard, try to make the game something that people might actually want to pay money for. An example user interface is shown below.

Function Points

1. Reset and quit. Provide a way to reset the game and a way to quit the program. The operations should be subject to confirmation; if the operation is not confirmed, the action is abandoned.

2. Scoring. Add scoring to the game. The count of the number of bricks removed since reset should be displayed. For example, bricks in the topmost row (coloured red) might be worth 10 points each, with subsequent rows worth 5 points (yellow), 2 points (green) and 1 point (blue). If all bricks are removed, the game field is restored and the score continues. You also need to provide an interface for the user to specify the number of wall rows when the game starts.

3. Endpoint. Give the game a definite endpoint. For example, you might begin with a fixed number of balls (e.g. 3), and have the game stop when all balls have been lost. You also need to provide an interface for the user to specify the number of balls when the game starts and to view the number of balls available.

4. Difficulty levels. Provide a way to set the difficulty level of the game so that it is suitable for a variety of skill levels. For example. A game with a higher ball speed and a smaller bat size is more difficult to play.

5. High scores. Keep a list of the high scores for each game. When a new high score is posted, prompt for a player name and add the new score to the list. You'll also need a way to reset the list.

6. Save and restore. Add the ability to save and restore the high scores list and the state of any unfinished game. On shut down, the program should ask if the state should be saved. On start up, it should ask if the user wants to restore the saved game or start a new game.

7. Game types. Provide an interface that allows the user to choose between several games. For example, you might offer a Classic game with a single bat, a Ping Pong game with bats at both top and bottom, and an All In game with bats on all 4 sides.

8. Themes. Provide a way for the user to choose different colour schemes for the walls, the ball, and the bat. You may either give the user a set of predefined themes (choose your favourite colour combinations) to choose from or allow the user to individually specify the colours for the ball, the bat, and each wall.

9. Game dynamics. Make the game get progressively more challenging as the score increases. For example, you could have the ball move faster or the bat get smaller. You'll have to experiment with the various factors to strike a balance. You want it to be hard enough to be challenging, but not so hard as to be over too quickly.

10. Manual and Look-and-Feel. The user can set the look-and-feel of the program among a number of choices such as Metal, Nimbus, CDE/Motif, Mac OS X etc. The user can also access the manual describing how to play the game. The manual should be properly formatted with sensible choices of fonts, colours, images and so on.

Style Points

11. Appearance. The program presents an attractive appearance, including careful choice of colours and fonts, sensible choice and arrangement of components, and appropriate use of borders and other decoration.

12. Geometry. The program window opens at a suitable size and maintains an appropriate layout of components when made (reasonably) larger or smaller.

13. Code layout. Use indentation and white space to clearly display organisation and function. Apply layout rules universally and consistently.

14. Code structure. Match control structures to the tasks they perform. Declare variables only when necessary, and use appropriate scopes and types.

15. Code documentation. Document all external interfaces according to accepted conventions. Use internal documentation where necessary and where it adds value to the code.

Reference no: EM131507929

Questions Cloud

Identify the company and situation : Consider an instance in an international organization where ethics has been brought into question OR an international company.
How might this affect the future share price : In what way might a policy to pay no dividends affect a hotel corporation's market price of shares? If the policy were to pay out all net income in dividends.
Risks of making agriculture : Reflecting on the Green Revolution (the introduction of high-yielding grains, on the one hand, and the risks of making agriculture
Describe a specific gap in the delivery of healthcare : Describe a specific gap in the delivery of healthcare. Include specific population affected by the gap. Describe the history of the gap in access to healthcare.
Provide a way to reset the game : Provide a way to reset the game and a way to quit the program. The operations should be subject to confirmation.
What is your understanding of the term satisficing : Explain your understanding of a mission statement and state four purposes that it can serve.
Supply of sodas and to the equilibrium : What should a reduction in the soda tax do to the supply of sodas and to the equilibrium price and quantity? Can you show this graphically?
Briefly discuss the economic and demographic factors : Although Charlie (4C) has been in business for only a short time, he is thinking about opening a second restaurant similar to his current operation-a relatively
How might advertising reduce economic wellbeing : How might advertising reduce economic wellbeing? how might advertising increase economic welling? Give an example of each case and EXPLAIN

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implemented a distributed rental car management system

You implemented a distributed rental car management system using Java TCP Sockets and object streams. The goal of this project is to use code from your TCP project and create a new implementation of the rental car management system using Java RMI

  Write a java code to count number of capital letters in line

Write a java codenpseudo-code to count the number of capital letters in a line of text. How many comparisons does it do? What is the fewestnumber of increments it might do? What is the largest number?

  Create a java program to calculate the bmi

In this assignment you are required to create a java program to calculate the BMI. Enter the weight and height of person and let the program automatically calculate the BMI.

  How do you create a list using a listview control

Discussion questions for Android Develpers. How do you create a list using a ListView control? Discuss adding the Images to the Resources Folder.

  This project is designed to exercise all the java tools

This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment.

  The letters of the alphabet a through z

The letters of the alphabet A through Z can be represented in Morse code. Each letter is represented by a combination of up to four dots and/or dashes, as shown below. Use Java to write and run a console-window program that can convert an English ..

  Explain java stack and heap

I am posting the questions as reference, but I am requesting information about how to do these types of questions generally, not to have them done for me.

  Write java method which fills the array with random numbers

Write a Java method which takes an integer array parameter and fills the array with random numbers between 1 and 1000, including 1 and 1000.

  Define variables constructors and methods

It defines variables, constructors, and methods. The second class is ClassClient. In ClassClient, the constructor for FirstClassOOPS is called.

  Create a class called point

Create a class called Point that has the following private members: float x - the x-coordinate of the point. float y - the y-coordinate of the point

  Create java servlets

Create a new JSON "view" (e.g., a JSP page that only displays the JSON representation of the data)

  Draw a uml diagram of each of the shapes

Draw a UML diagram of each of the Shapes, Rectangle and Square classes using the code that has been provided. Complete this using the examples that have been provide in the lecture slides - Sample program is provided that creates a list of shapes ..

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