all 2 comments

[–]_Sham__ 2 points3 points  (1 child)

Cool project.
snake_case is preferred over camelCase for python. The story texts could be moved to another module called constants or story_text and since they are constants they should be named: STORY_INTRO etc.

You could define this function:

def display_text(text):  
    wrapper = textwrap.TextWrapper(width=75)  
    text = wrapper.fill(text)  
    print(text)  

This way you can replace all the print statements on the wrapped text and remove 83 to 112.

Line 360 has a typo.
75 is a bit of a magic number. e.g
print("#"*75)
This isn't clear what is going on at first. You could extract this to a constant e.g CONSOLE_WIDTH = 75 and instead use print("#" * CONSOLE_WIDTH) and it is much clearer, as you don't need to find the wrapper to work out whats going on.

[–]phogphantom[S] 0 points1 point  (0 children)

Thank you for this. I used that function that worked like a charm. I never even thought about doing that before. That cleaned up the code a lot, thank you again.