Question: The adventure game you will implement for this assignment - like any of the text - based adventure games that were demonstrated by your classmates

The adventure game you will implement for this assignment-like any of the text-based adventure
games that were demonstrated by your classmates in class earlier this semester-takes place in a virtual
world in which you, as the player, move about from one location to another. The locations, which are
traditionally called "rooms" even though thev mav be outside. are described to you through a written
textual description that gives you a sense
commands, most of which are simply an i
Copy
Link
move about in the game by giving
on of motion. For example, you might
move about as follows:
Overview of the data files
The adventure program you will create for this assignment and all followed up assignments is entirely
data driven. Just like your final project. The program itself doesn't know the details of the game
geography, the objects that are distributed among the various rooms, or even the words used to move
from place to place. All such information is supplied in the form of data files, which the program uses to
control its own operation. The ultimate goal is if you run the program with different data files, the same
program will guide its players through different adventure games.
For this first assignment, there must be an associated data file:
Rooms.txt, which defines the rooms and the connections between them.
You can also have two text files, one to define rooms and one to define connections.
The number of the text file and the structure of the text files are entirely up to you as long as
you accomplish the task.
For example, the room data file could have the following information:
A room number, which must be greater than zero
Its name, which is a one-line string identifying the room
Its description, which is a multiline array describing the room
A flag indicating whether the room has been visited
A navigation table specifying the exits and where they lead
For example, this data file is not a Java program, but is instead text file that describe the rooms and their
connections.
 The adventure game you will implement for this assignment-like any of

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!