Friday, 28 October 2016

practice pseudo code for text base game1

Begin

Input Name

Output "you are in an unknown room to your left is a door"

Option1 = false

While Option1 = false

   
    Move1 = "what do you do?"
   
    If Move1 = left Then
   
        Output "The door has a note on it that reads"
        Question1 = "a ball is dropped from the 64th floor of a building if each bounce is half that of the last how many bounces will it take to reach the 2nd floor"

        If Question1 = 5 Then
            Output " well done"
            Option1 = true
        Else
            Output "try again"
            Option1 = false


   









No comments:

Post a Comment