Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in C++, thank you. Make your own simplified version of Colossal Cave Adventure. Since the ancient days of Colossal Cave, programmers and game

Please do in C++, thank you.

Make your own simplified version of Colossal Cave Adventure. Since the ancient days of Colossal Cave, programmers and game companies have developed many different adventure and interactive fiction games. Some of the more famous of these games were ZORK, Myst and Kings Quest. For this first part of the assignment, you will be creating an adventure type game that has a main character. which will include several of the elements from the original game.

Adventure was an entirely text based game. The program would give a description of the users surroundings and provide the user with an input prompt. The user could then enter a words or a phrase to interact with the world. For example, the user could enter the command NE to have the character move NE. The game would then describe the location of the character. The user could move throughout the world (N, S, E, W, NE, NW, SE, SW, IN, OUT, UP, DOWN), interact with different items (GET, DROP, USE, etc.) and sometimes with characters (such as a pirate, a bird or a dwarf). Having certain items in your inventory would help you to accomplish specific tasks. For example, you could use the cage to capture the bird or kill the dwarves with an axe. If Adventure did not understand a keyword, it would reply that it did not understand. As they moved through the world, the user would score points based on their actions up to a maximum of 350. The user could also quit at any time to receive their final score. I

In particular, your game will need to meet the following minimum requirements:

An overall objective. For example, get the character to Room101.

A point based system. For example, you can give points for visiting locations or for interacting with certain parts of the world.

A character. At a minimum, the character should be a class that has member variables for their name and game score. Of course, you can add more member variables if you want to make your game more complicated.

A map of your world that shows the dependencies between the locations in the world. From a design perspective, you should have a location class with a description for each location. You will need to have at least 25 locations in your world. You need to implement the entire world as a two dimensional array and allow the user to navigate through it. At least three locations should support some form of interaction. For example, you could have a fountain from which the character can drink or a simple puzzle they need to solve to finish the game. This can be implemented as a function.

A list of commands that the program will accept. You are free to implement as many commands as you like. At a minimum, you will need the following commands: Help Display help for the user. N,S,E,W The character should be able to move in one of four directions. This should change their location unless they are on the edge of the map or move to an invalid location. Score The program should display the score.

Constructors, accessor, and mutator functions for all your classes. You may also want some friend functions to help you with input and output.

Separate Compilation Your program should support separate compilation with header files for each class.

Your code should have appropriate comments to explain the program and the code. It should be written in a consistent and readable form and compile without errors or warnings.

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

Students also viewed these Databases questions