[Solved] Create a simple text based adventure game using C++. The game will be comprised of Room() constructs.
Create a simple text based adventure game using C++. The game will be comprised of Room() constructs. These constructs will have a room_name,room_description, room_id, occupied code, and 4 exit codes (’N’, ’S’,’E’, ’W’). You are free to add other variables as necessary. The exit codes will contain the room_id of the room in that direction. If the room is occupied, randomly select one of 4 monsters to spawn in the room. What, exactly, they do with your character is up to you.
Requirements:
• Move throughout the adventure with the N,S, E, W keys moving you in the four cardinal directions.
• When a room is occupied, spawn a monster.
• Create a minimum of 5 rooms in your dungeon.
• The game ends when the player leaves through the exit – tell them the game is over.
• Use functions whenever possible to modularize your code. Use function prototypes and code the functions under main().
// Specification C1 – Five Rooms
Create a minimum of 5 rooms in your dungeon. If you hard code
your rooms, put this comment right before the last room.
• // Specification C2 – Player Name
Ask the player to enter their name. Use this name in some of your
game text.
• // Specification C3 – Input Validation
Perform input validation with the command options. Only allow
the entry of valid commands.
• // Specification C4 – Abbreviated Room Description
Display room_title and room_description the first time the player
enters the room. Only display the room_title on subsequent visits
to the room.
// Specification C5 – Detailed Look
Show the room_title and room_description every time the player
enters the ’L’ook key.
You are to select 3 features to add to your design to meet this
specification bundle. Comment each feature you add the same way
you’ve been doing it all class (// Specification B1 ….). I still want to
see 3 specification comments. Don’t forget a 1 sentence description
of the feature you just added in your specification comment. You are
free to create other specifications if you wish – just make sure they are
equivalent in complexity to these (no “Ready player 1” cout’s).
• Add more command options.
• Add combat.
• Add trap encounters.
• Add treasure.
• Add the concept of light and dark rooms.
• Add more monsters (I’ll give you credit for only 1 more monster,
regardless of the number you actually add).
• Add more rooms (only 1 more counts here, more than 1 new room
doesn’t count).
• Use a random room generator to create an unlimited number of
rooms.
• Use an array of structs.
• Put your monsters in a Monster() class.
• Create a pseudo dynamic array.
• Store your room information in a file and read that file in at the
start of the program.
As “B” specification bundle, but add 4 more specifications of your
choosing. Comment them individually using the format we have
used all along in this class (// Specification A1 – description, etc.
etc.). I’m looking for A1, A2, A3 and A4 specifications. Use the suggestions above or come up with your own.
Expert Answer
Answer to Create a simple text based adventure game using C++. The game will be comprised of Room() constructs…….
OR

