Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago