Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Language: C++

image text in transcribed

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 ptrs) 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 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 ptrs) 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

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

Why is color vision deficiency a better term than color blindness?

Answered: 1 week ago

Question

4. What advice would you give to Carol Sullivan-Diaz?

Answered: 1 week ago