Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a JAVA game where player clicks the red blocks on panel A and gain points if block doesnt have bomb or loose if there

Write a JAVA game where player clicks the red blocks on panel A and gain points if block doesnt have "bomb" or loose if there is one. The requirements are:

* Panel A should have 10 smaller panels

* The aim of the game is for a player to click on each square and gain points. The player must score a point every time they click on a square.

* If they click on a square and the bomb is not there that square must change colour (any colour) to indicate that they have clicked on that square.

* Your program must include the functionality to ensure that the bomb is hidden inside one of these square within Panel A. By the bomb being hidden, all this means is that when the player clicks on the square with the bomb, a message is displayed that says You lose! You got 5 points (the points being a variable number depending on the players outcome). This message should appear in Panel B.

* Panel B must ensure that a player can begin the game as well as exit the game when they choose to.

* Panel B must ensure that a player can start a new game once a game is completed (Hint: If the previous game has changed the colours of the squares these need to revert back to their original colour)

* Panel B is also responsible for outputting the message You lose! You got 5 points when the player loses.

* Panel C is responsible for ensuring that the player can play the game at a difficulty level that they feel comfortable.

* If the player chooses easy then the player will win after 5 safe panels (tries). If intermediate is chosen 7 tries and there are no safe panels for a player playing at difficult level.

Please check picture as a reference:

image text in transcribed

Let's refer to each panel as Panel A, Panel B and Panel C. Layout: Evade The Bamb Play A Game Easy Intermediate Difficult Let's refer to each panel as Panel A, Panel B and Panel C. Layout: Evade The Bamb Play A Game Easy Intermediate Difficult

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What was the positive value of Max Weber's model of "bureaucracy?"

Answered: 1 week ago