Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Outside building You are standing at the end of a road before a small brick You are standing at the end of a road before

Outside building
You are standing at the end of a road before a small brick
You are standing at the end of a road before a small bri building. A small stream flows out of the building and
down a gully to the south. A road runs up a small hill
to the west.
WEST
WEST
NORTH
IN
2
End of road
You are at the end of a road at the top of a small hill.
You can see a small building in the valley to the east.
EAST
EAST
3
Inside building
You are inside a building, a well house for a large spring.
SOUTH
SOUTH,1
OUT 1
The program you will write for this assignment must:
1- Read this file into an internal data structure, which it then displayed to the user on the console
to guide the player through the game.
2- Allow the player to be able to move between rooms by reading and executing navigation
commands entered by the user through the console
3- Your program should be able to track visited rooms and display the message visited on the
console if the player revisit a room.
4- A total of 6 rooms is required for this assignment with the following navigation command:
a. North
b. East
c. South
d. West
Important notes:
1- Please note that this is not a programming class where I am expected to trouble shoot your
code. However, I found over the years of teaching this class that students need similar
programming exercise to review their programming skills in preparation for the final project
deliverable. To help you I will discuss possible solutions in the class and show you sample code
and record some videos and you will put time and efforts to get your code up and running
properly.
2- Use either JAVA Eclipse or IntelliJ
3- Grading code takes lots of time so keep your code clean, organized and understandable by
adding comments. The more organized your code is the quicker I can grade and the faster you
will get a feedback.
4- Don't fix the file path in your code
5- If your code doesn't run you will get '0' for this assignment. If your code runs but have partial
behaviuor you will get partial credits. e.g. your code runs and allows me to navigate between
rooms but doesn't keep track of visited rooms, then I will take points off for this missing
requirement.
6- The second and the third assignment will add more to the first assignment. Therefore, it is
important to finish this assignment on time and as directed. Otherwise, you will fall behind
quickly.
7- Below is a sample scenario:
Which direction do you want to go?(N, S, E, W)
E
You are at Room 2
Which direction do you want to go?(N, S, E, W)
w
You cann't go this way
Which direction do you want to go?(N, S, E, W)
s
You are at Room 4
Which direction do you want to go?(N, S, E, W)
N
This look familiar
You are at Room 2
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

Step: 3

blur-text-image

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

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

ISBN: 1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago