Question: JAVA HELP A choose your own adventure game is a fairly old concept. Whether the game takes the form of a paper book, a computer

JAVA HELP A choose your own adventure game is a fairly old concept. Whether the game takes the form of a paper book, a computer program that outputs text, or a 3D RPG, the rules are the same. The player is given a prompt -- one part of a story. Then the user must select an option for how to proceed with the story. Depending on the option selected, the story can develop in different ways. Each of these points in the story can take the form of nodes in a graph. The edges between nodes represent the options the player can choose at each point in the story. Then, when the player selects an option (or edge), the next connected node reveals the next part of the story. - Define a class called StoryElement, which stores some text describing an event or place in the story. - Allow the StoryElement to contain a number of options (either more StoryElement objects, or a separate class containing a StoryElement object.) - Print the story text and list of options. Allow the user to select an option. - Repeat for the next StoryElement associated with that option.

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!