Browse Source

Update 'annotated_code.md'

KittyAlana 3 years ago
parent
commit
e9a28f2b74
1 changed files with 5 additions and 4 deletions
  1. 5 4
      annotated_code.md

+ 5 - 4
annotated_code.md

@@ -11,8 +11,7 @@ A position in this program is determined as any point where the program is outpu
 Cycles through the list of all possible positions, calling noninteractive and then interaction in every loop. 
 
 ### Interaction
-    def processIn(prompt, orderedOptions)
-Takes in an input prompt and possible options, prompts for input with given prompt until answer matches an option. Returns the index of the list of the option chose by the user.
+`def processIn(prompt, orderedOptions)` Takes in an input prompt and possible options, prompts for input with given prompt until answer matches an option. Returns the index of the list of the option chose by the user.
 
     def dialogue(position):
         if position == "start": #Uses conditionals to determine position
@@ -21,5 +20,7 @@ Takes in an input prompt and possible options, prompts for input with given prom
             tmp = processIn("Options: Comfort, Ignore, or Demean: ", orderedOptions) #Prompts for user response using processIn
             response(orderedOptions, tmp) #Uses response() to respond to user input appropriately.
 This is the core of the program and determines how interactions take place.
-    response()
-is just a simple program that finds the appropriate responses (hard-coded) based on the position and the response number (tmp).
+`response()` is just a simple program that finds the appropriate responses (hard-coded) based on the position and the response number (tmp).
+
+### NonInteractive
+This program only has one function, `def output(position)`, and it takes the position to print appropriate hard-coded noninteractive responses.