Question: Code has to be in Java. The game must employ object-oriented principals for all the components. That means the highest class is Game your finished

Code has to be in Java.

The game must employ object-oriented principals for all the components. That means the highest class is Gameyour finished game. You may choose to call this main class Wonderland or another appropriate name. The Game class should have one main() method that creates an instance of the game and invokes it for game execution. Within Game, necessary classes must include Locations, Items, Characters, Actions, Inventory and Control. You may find more classes are necessary to complete the game.

The Control class is the class that reads user input and checks the input against valid Actions. If an Action is allowed, then the methods required to complete the action should be called on the objects involved (e.g., Action: take; object involved: flashlight). Certain actions will result in changes in the users inventory. Other actions will change the users location. Changes in location will trigger appropriate descriptive outputs based on the room entered and whether it is the first time entering.

Give careful consideration to your how the objects (classes) in your game interact.

Your game can contain any reasonable number of locations (rooms), with a minimum of five (5). A common starting point is near the rabbit hole, and the ending point is somewhere in wonderland. Once you descend into the rabbit hole, you are unable to return. Otherwise, the locations (rooms) and how you connect them is your design choice, which MUST be completely documented as part of the design documents for the game. You should create a safe room to act as a gathering area for your treasures.

Locations should have a minimum of one entrance and one exit (not the same), but at least one room must have more than three (3) exits.

You must portray a minimum of five (5) characters from the book. You must have a minimum of 12 items for the main character to interact with, which should be taken from the book.

You will need to establish a goal for the main character (e.g., Alice), and you must state this at the beginning of the game.

The items, characters, location descriptions and action words should be contained in separate text files, which are opened and loaded into the game at the start of the game.

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!