Commits

Anonymous committed 734ccd0

branching_story: comment polishing.

Comments (0)

Files changed (1)

branching_story.py

 
 if __name__ == "__main__": 
 # Get the path to move in. 
-    path = Path(    start=(2,2), # Where we begin
-                    target=(0,0), # Where we want to get
+    path = Path(    start=(2,2), # Where we begin. 
+                    target=(0,0), # Where the maze ends. 
                     maze=wood, # The maze in which we move
-                    descriptions=location_descriptions, # Descriptions for the named locations in the maze
+                    descriptions=location_descriptions, # Descriptions for the named locations in the maze. 
                     description_type = "text", # The maze descriptions are simple text strings. 
-                    story=story, 
-                    ask=ask)
+                    story=story, # The function for telling things to the user. 
+                    ask=ask # the function for asking the user. 
+                    )
     
     # Move until we reach the target. 
     while not path.position == path.target: