Question: 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++

Language: C++ For this assignment, you will be creating a simple text

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!