Simple Interactive Fiction Game
Description
You can break down this program into three distinct components:
The global variables that keep track of the “resources” (game state)
- Functions that are responsible for rendering each room and manipulating the resources
A main program to orchestrate which function should be called next
- You can construct a game like this using functions fairly easily. In order to do this you will need to identify distinct “states” or “rooms” of your game – each of these “rooms” can handle a specific portion of the game.
- Connect these rooms by using function calls to allow the user to switch rooms when a specific command is detected. Use the sample code above as a guide
- functions and global variables must be used for this!! Please follow all directions. Thank you! I will attach my game I’ve created as well as the explanation and the sample code that was provide d.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."