Sunday, 30 October 2016

practice pseudocode for text based game 2

continued

Output "you are in a hallway, out of the window in front of you there is a destroyed city and horrifying monsters"

Option2 = false

while Option2 = false

    Move2 = "there is a wall to your right and a hall to your left what do you do"

    If Move2 = left then
        Output "you are in a large room with stairs in front of you"
        Option2 = true
    else then
        Output "that isn't an option"
        Option2 = false

   




  

No comments:

Post a Comment