diff --git a/.gitignore b/.gitignore index 733a58d..06a6c88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.swp *.pdf *.docx .~lock* diff --git a/assets/text_based_adventure_game.dia b/assets/text_based_adventure_game.dia new file mode 100644 index 0000000..92c4e29 --- /dev/null +++ b/assets/text_based_adventure_game.dia @@ -0,0 +1,1003 @@ + + + + + + + + + + + + + #A4# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #You're in a cross section. +Do you go left or right?# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Down this hall you encounter a bear. +It runs towards you. +Do you fight it?# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #A wizard appears who asks +you the meaning of life...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #game over# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #You find some mushrooms. +Do you eat them?# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #You starve to dead...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #The bear counter attacks! +You die...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #That's right! He promotes you +to wizard level!# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #The wizard curses you to a life +of damnation# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #you win# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/text_based_adventure_game.png b/assets/text_based_adventure_game.png new file mode 100644 index 0000000..15384db Binary files /dev/null and b/assets/text_based_adventure_game.png differ diff --git a/learning_python3.md b/learning_python3.md index eacb6d5..0657c65 100644 --- a/learning_python3.md +++ b/learning_python3.md @@ -411,7 +411,7 @@ else: # A text based adventure game -TODO mini text based adventure game to point out the complexity of conditional logic and flow control +![adventure game](./assets/text_based_adventure_game.png) # Creating your own functions