CS120
Programming Assignment #5

Due Wedensday Oct 4th at the beginning of lecture.

The goal for this assignment is to take the structure that you created in lab and add it to your text based adventure game.

The program should use the initialization function you created in lab to make sure that the initial values in the structure are correct.

The program should use the print function you created in lab to print the data in the structure so that the player knows how well they are doing. All of the data in the structure does not have to be printed for every room. For example, you might decide to create two print functions, one that only prints a few important items and another function that prints all of the data in the structure, but is only sometimes called.

Different areas should change values in the structure. This probably just means taking code that currently changes a single global variable and making that code change a variable in the structure.

As always turn in a copy of the code and sample output showing the code running. Make sure that the sample output includes examples of the structure being printed and the values in the structure changing.