Comp 151 Project 4

a (very) short Interactive fiction

Summary:

Once upon a time, when processors were slow, and graphical displays were expensive or non-existant, computer games were mostly text. The game told a story and the player was able to influence the outcome of that story. Then computer games gained graphics and controllers and these pure text games became called "interactive fiction" and started to show up in English departments rather than being something that computer science graduate students did to avoid working on their Ph.D dissertations.
 
In this project you will program a very short interactive fiction program of your own. Oh and you'll get a chance to practice your if statements too.

Due: Tuesday Oct 19th at 11:59pm


Details:

You will need to write the Story class as defined in the UML below.

UML class diagram for project 4

public static void main(String[] args){
    Scanner userInput = new Scanner(System.in);
    Story myStory = new Story(userInput);
    myStory.startStory();
}
Continue to implement the methods in this way (first some story printed out then a choice, which will call one method for choice one and another method for choice two) following the flow chart below. Note that only the StartStory, ChoiceOne and ChoiceTwo methods need if statements. The rest of them (Ending One-Four) just need System.out.print statements to tell the story.

story flow chart


Submitting:

again zip up your project folder and submit it to me by email. Make sure that your submitted zip file contains your first initial and last name as part of the zip file name.