As a user, I will work through a series of options that lead me through the application.
Acceptance Criteria
Development
Hello, character name, would you like to take a leap? (y/n)
No? Console.Write("Fine. Be boring.");
Yes? Present a list of events to the user that they can choose from. The user then types in the id of the event they would like to select.
Then, use the method within the budget class to determine the total cost of the trip from their current point in time.
If they DO NOT have enough funds, tell them how much they have in their budget and how much the trip is going to cost. Then prompt them to enter the amount they would like to add to their budget and then send back to the beginning where they select the ID of the event.
When they have enough funds, a function called newLeap will take the event ID and add it to the leap history of the leaper and subtracts the total cost of the leap from their budget. It also changes the IsPutRight property of the event to true. This also selects a random event from the list of events that fall after the current event and change that status to false. (The events will be listed in chronological order to make it easy to determine which events fall before or after the current event).
After the leap occurs and the user is told their current position, they are given the option to leap again (y/n). Yes takes them back to their initial options and No will break them out of the application.
User Story
As a user, I will work through a series of options that lead me through the application.
Acceptance Criteria
Development
Hello, character name, would you like to take a leap? (y/n) No? Console.Write("Fine. Be boring."); Yes? Present a list of events to the user that they can choose from. The user then types in the id of the event they would like to select. Then, use the method within the budget class to determine the total cost of the trip from their current point in time. If they DO NOT have enough funds, tell them how much they have in their budget and how much the trip is going to cost. Then prompt them to enter the amount they would like to add to their budget and then send back to the beginning where they select the ID of the event.
When they have enough funds, a function called
newLeap
will take the event ID and add it to the leap history of the leaper and subtracts the total cost of the leap from their budget. It also changes theIsPutRight
property of the event totrue
. This also selects a random event from the list of events that fall after the current event and change that status to false. (The events will be listed in chronological order to make it easy to determine which events fall before or after the current event).After the leap occurs and the user is told their current position, they are given the option to leap again (y/n). Yes takes them back to their initial options and No will break them out of the application.