Question: Java Programing The Treasure Hunt Game Finding a treasure gives the user 1, 2, or 3 points randomly. User stories As a player, when I

Java Programing

The Treasure Hunt Game

Finding a treasure gives the user 1, 2, or 3 points randomly. User stories As a player, when I click on a treasure, I am randomly given one, two or three points, which is shown in the Last Move field. As a player, I can tell how many points I have accumulated in an on-screen Points field. As a player, I can exit the game at any point using a menu. Technical Implementation Implement a method in the button classes that return the number of points they are worth. Implement field to show how many points the user has next to the Tries Left field and update it when ever the user finds a treasure. Implement a menu in the game window. Keep each class in a separate file. Use the CRC card format from the Chapter 8 (p. 547-548) to explain in a comment right before the class definition what the responsibilities and functions of the class are. Be sure to have a Responsibilities and a Collaborating Classes sections.

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!