Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ For this assignment, you will be creating a simple text based adventure game. Each room in the adventure should be represented by its own

image text in transcribedC++

For this assignment, you will be creating a simple text based adventure game. Each "room" in the adventure should be represented by its own function. (A "room" just represents a particular area, not necessarily a literal room.) Requirements (6 pts) Each "room" should have some text describing the room and some options for where the player can go next. You may also include some options for what the player can do in that room. You should have at least six rooms, and the player should play a game or do something in each room. (Have fun developing your game!) (1 ptr) Use at least once the rand() function to generate random number in your game. Use srand() to seed the random number generator (1 ptr) There should be at least one (global) "score" variable, such as amount of gold collected, number of butterflies rescued, number of clues found, number of lives lost, amount of health remaining, etc. This variable should change as the player moves between rooms (1 ptr) There should be a separate function that prints the value of the variable for the player. That is, it should print something like Oxygen Remaining: 120 for any room the character enters *(1 ptr) Remember to put a comment at the beginning of the code with your name, section number, assignment number, etc. Make sure your program is well indented, and comments should be used in the program to make your code easy to read

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

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

Deploy the tools of persuasion and advocacy

Answered: 1 week ago