**** PLEASE INCLUDE THE "RoomMap2.txt", "Items.txt", & "Puzzles.txt" WITH YOUR ANSWER. THAT IS THE MOST IMPORTANT PART A

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

**** PLEASE INCLUDE THE "RoomMap2.txt", "Items.txt", & "Puzzles.txt" WITH YOUR ANSWER. THAT IS THE MOST IMPORTANT PART A

Post by answerhappygod »

**** PLEASE INCLUDE
THE "RoomMap2.txt", "Items.txt", &
"Puzzles.txt" WITH YOUR ANSWER. THAT IS THE MOST IMPORTANT PART AND
NOT THE CODE. I'LL DOWNVOTE IF THERE IS NO "RoomMap2.txt",
"Items.txt", & "Puzzles.txt" INCLUDED IN UR ANSWER. THANK
YOU!*****!!! YOU MAKE UP THE CONNECTIONS BETWEEN ROOMS AS THE
INSTRUCTIONS SAYS. PLEASE THE MOST IMPORTANT PART IS THE .TXT FILES
AND NOT THE CODE!!!!
Please Include The Roommap2 Txt Items Txt Puzzles Txt With Your Answer That Is The Most Important Part A 1
Please Include The Roommap2 Txt Items Txt Puzzles Txt With Your Answer That Is The Most Important Part A 1 (546.71 KiB) Viewed 47 times
Please Include The Roommap2 Txt Items Txt Puzzles Txt With Your Answer That Is The Most Important Part A 2
Please Include The Roommap2 Txt Items Txt Puzzles Txt With Your Answer That Is The Most Important Part A 2 (361.5 KiB) Viewed 47 times
Please Include The Roommap2 Txt Items Txt Puzzles Txt With Your Answer That Is The Most Important Part A 3
Please Include The Roommap2 Txt Items Txt Puzzles Txt With Your Answer That Is The Most Important Part A 3 (499.36 KiB) Viewed 47 times
The adventure game you will implement for this assignment 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 they may be outside, are described to you through a written textual description that gives you a sense of the geography. You move about in the game by giving commands, most of which are simply an indication of the direction of motion. For example, you might move about as follows: ●●● Adventure You are standing at the end of a road before a small brick 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 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 Outside building. Adventure > IN You are inside a building, a well house for a large spring. The exit door is to the south. There is another room to the north, but the door is barred by a shimmering curtain. There is a set of keys here. There is a bottle of water here. > Overview of the data files The adventure program you will create for this assignment 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. This program will read text files to load the data (Your project will use a database which you must populate and query). Hint: Think about the objects that will exist in the game. These objects should know how to validate themselves and by using exceptions, allow your UI code to handle user input errors or invalid moves without doing the validation in the UI code. You should not have a massive nested

if structure that requires the UI to know which room you are in and what valid moves are for that room. Let the room tell you this. The ultimate goal is if you run the program with different data files, the same source code can be used to guide its players through different adventure games. If the format of the text file changes, this would have to be handled with source code modifications. For this first assignment, there must be an associated data file: Rooms.txt, which defines the rooms and the connections between them. ● You could 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 can be 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 O Valid directions are NORTH, SOUTH, EAST, WEST, UP, and DOWN. Your program should allow the user to use either the full command or just the first letter and should accept case insensitive input. I encourage you to think about the objects that can be used to represent the different components in the program. For example, a Room object can contain a description, a List of Exit objects. The Exit class can contain the direction and destination room ID. For example, this data file is not a Java program, but is instead text file that describe the rooms and their connections.

1 Beginning You are standing at the end of a road before dark and dank cave. The forest is covering the road lending a dark and spooky aspect to the road. You hear a low wailing that seems to be coming from the cave. You can go WEST from here. ➖➖➖➖ WEST 2 2 Entrance You have entered a dark, low cave that seems to lead to a slightly larger cavern to the west. Strangely you see a faint glow coming from the east. You can go WEST or EAST from here. EAST 1 WEST 3 Cavern You enter a large cavern. You are surprised to find that the walls of the cave are glowing so you have no problem seeing the large stalactites that have formed. To the south you hear the sound of rushing water. To the north you hear strange sounds that sound like someone with a broken heart. You see as set of stairs at the west end of the cavern. You can go EAST, NORTH, SOUTH or DOWN from here. ➖➖➖➖ EAST 2 NORTH 4 SOUTY The program you will write for this assignment must: 1- Read this file into an internal data structure, which is then displayed to the user on the console to guide the player through the game. You should load all of the data for all rooms when you read the file. In our project, we will be using a database and so won't read the entire program into a data structure in your code. Once the file has been read, print the rooms before proceeding to 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. The user must be able to backtrack through the rooms. 3- Your program should be able to track visited rooms and display the message visited on the console if the player revisits 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 e. Up f. Down You do not have to use all of these commands in your game. You must use at least 4 of them. Important notes: 1- Use either JAVA Eclipse or IntelliJ. I will be using IntelliJ to demonstrate code. 2- Code takes a lot of time to read and understand. Your code should be clean, organized, understandable, and in compliance with the coding standards. You should comment your classes

and methods in accordance with the coding standards. You should add comments where needed to explain "clever solutions". 3- Don't fix the file path in your code. You should use relative paths. Your code should not have specific references that are only available from your machine. 4- Your code must run for this assignment. If your code does not run and or has compile errors, your grade will start at a 50. If your code runs but does not have correct behavior you will get partial credit, 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. 5- Below is a sample scenario: Rooms ID = 1, name Beginning Description You are standing at the end of a road before a dark and dank cave. The forest is covering the road lending a dark and spooky aspect to the road. You hear a low wailing that seems to be coming from the cave. exits You can go WEST ID = 2, name = Entrance Description You have entered a dark, low cave that seems to lead to a slightly larger cavern to the west. Strangely you see a faint glow coming from the east. exits You can go EAST or WEST ID = 3, name = Cavern Description You enter a large cavern. You are surprised to find that the walls of the cave are glowing so you have no problem seeing the large stalactites that have formed. To the south you hear the sound of rushing water. To the north you hear strange sounds that sound like someone with a broken heart. You see as set of stairs at the west end of the cavern. exits You can go EAST or NORTH or DOWN
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply