Question: Create the following Game in Java. Imagine that in one old castle 5 ghosts (four regular and one Boss Ghost) are hidden on the floor

Create the following Game in Java.

Imagine that in one old castle 5 ghosts (four regular and one Boss Ghost) are hidden on the floor with tiles 8x8. The player should find and delete the ghosts with three weapons: Laser and Blaster, and BGun

The Laser can determine the number of ghosts in one row or column, or diagonal and has only 11 beams of light. Ask the user what he/she needs to check and then output the number of ghosts in this line.

The Blaster can delete the ghost with one shot and the player can use it only 10 times. Blaster cant be used before the player uses all Laser beams. Unfortunately, the Boss Ghost can move after each blaster shot to the closest empty position. The first part of the game is done when all 5 ghosts are deleted or the player uses all Blaster shots.

If all ghosts are deleted, output the message that the player won the game.

Second part of the game: If the player used all Blaster shots and did not delete all ghosts, the remaining ghosts will fight with the player. The method should also output the appropriate messages about the fight. If the player survives and defeats the ghosts-> Output that the player won the game.

1. Create 2D array 8x8 and fill it with zeros

2. Put randomly 4 ghosts (number 1) and one Boss ghost (2) in the array

Be sure that all ghosts get different positions

3. Do not forget to output the rules

4. Create 11 laser shots with multiple responses

5. Create 10 Blaster shots with multiple responses

7. Move the Boss Ghost to the closest empty position after each Blaster shot

8. Create the Second part of the game with BGun fight

9. Create your own feature to make the game unique

10. Show the proper user friendly output. Use the headers for the game and each method, do proper commenting

11. Code efficiency. Try to optimize the code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!