Homework 7, My Solution.
roll
Main: LoadEnounters While the the player is alive and there are still encounters get what the player wants to do next. Do what the player wants to do next. Print status of game LoadEncounters input: empty encounter array, encounter size =0 output: filled encounter array, valid encounter size Get filename from user open file read number of encounters for i = 0 to number of encounters read encounter[i] GetNextAction input: none output: ActionT: the action the user wishes to take. While invalid action Present the user with a menu of actions Get the action the user wishes to perform Take Action input: the encounter array, the player's current position, the player, the action to perform output: the modified player or encounter take the appropriate action based on the action input NOTE: This is a big switch statement, at this point in your programming journey, you probably don't need to explain this.