Answered step by step
Verified Expert Solution
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++
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 entersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started