Advertisement
Guest User

Hippocampus Anatomy Game

a guest
Aug 9th, 2011
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.69 KB | None | 0 0
  1. from sys import exit
  2.  
  3. def entorhinal_cortex():
  4.     print
  5.     print "You are currently in between layer 2 and 3 of the entorhinal cortex. You have the option of traveling in either layer. Which layer do you want to walk along?"
  6.  
  7.     next = raw_input ("> ")
  8.     if "2" in next or "3" in next:
  9.         how_much = int(next)
  10.     else:
  11.         dead("Sorry, no can do. Guess you're stuck in the entorhinal cortex!")
  12.        
  13.     if how_much == 2:
  14.         print "Welcome! Now you have the option of exploring the dentate gyrus or the hippocampal region CA3. Enter your choice."
  15.  
  16.         while True:
  17.             next = raw_input("> ")
  18.             if next.lower() == "dentate gyrus":
  19.                 dentate_gyrus()
  20.             elif next.lower() == "hippocampal region ca3":
  21.                 hippocampal_region_CA3()
  22.             else:
  23.                 print "That doesn't make much sense. Try typing that in again."
  24.            
  25.     elif how_much == 3:
  26.         print "Sweet pick. Since the entorhinal cortex has 2 major projections, you have the option of exploring the hippocampal region CA1 or the subiculum. Enter your choice."
  27.  
  28.         while True:
  29.             next = raw_input("> ")
  30.             if next.lower() == "hippocampal region CA1":
  31.                 hippocampal_region_CA1()
  32.             elif next.lower() == "subiculum":
  33.                 subiculum()
  34.             else:
  35.                 dead("You just missed out on such a good adventure. Bummer.")
  36.  
  37. def dentate_gyrus():
  38.     print
  39.     print "Ah, the dentate gyrus. Good pick. The dentate gyrus is one of the few regions in the adult brain where neurogenesis is thought to take place. It also plays a role in depression."
  40.     print "There are three major types of neurons found here."
  41.     print "Would you like to learn about them?"
  42.  
  43.     while True:
  44.         next = raw_input ("> ")
  45.         if next.lower() == "yes":
  46.             print "The dentate gyrus primarily consists of granule cells, interneurons and pyramidal cells."
  47.             print "The dentate gyrus' main projection is to the CA3. So off to there you go!"
  48.             hippocampal_region_CA3()
  49.         else:
  50.             dead("Aww, too bad. Guess you don't really want to explore the hippocampus.")
  51.  
  52. def hippocampal_region_CA3():
  53.     print
  54.     print "Now you're in the hippocampal region CA3 or simply, the CA3."
  55.     print "There are a few proposed behavioral functions of the CA3."
  56.     print "Would you like to learn about one?"
  57.  
  58.     next = raw_input ("> ")
  59.     if next.lower() == "yes":
  60.         print "The CA3 plays a role in the encoding of new spatial information within short-term memory with a duration of seconds and minutes."
  61.         print "The CA3's main projection is to the CA1. So that's where you're headed to next."
  62.         hippocampal_region_CA1()
  63.     else:
  64.         dead("Ok, you missed out. But no problem.")
  65.        
  66. def subiculum():
  67.     print
  68.     print "Hey, now you're in the most inferior region of the hippcampus called the subiculum. It lies between the entorhinal cortex and the CA1."
  69.     print "Do you want to stay or leave?"
  70.  
  71.     next = raw_input("> ")
  72.     if next.lower() == "stay":
  73.         dead("Alright guess I'll leave you here.")
  74.     elif next.lower() == "leave":
  75.         entorhinal_cortex_2()
  76.     else:
  77.         print "Huh? Try again."
  78.  
  79. def hippocampal_region_CA1():
  80.     print
  81.     print "--------------------"
  82.     print "Welcome to the hippocampal region CA1 or simply, CA1."
  83.     print "This region sends a large amount of output to the subiculum and some inputs back to the entorhinal cortex."
  84.     print "Which way would you like to travel?"
  85.  
  86.     while True:
  87.         next = raw_input("> ")
  88.         if next.lower() == "subiculum":
  89.             subiculum()
  90.         elif next.lower() == "entorhinal cortex":
  91.             entorhinal_cortex_2()
  92.         else:
  93.             print "Try typing that again."
  94.    
  95. def entorhinal_cortex_2():
  96.     print
  97.     print "You have now, more or less, made a full loop within the connections of the hippocampus. Congratulations!"
  98.     print "If you want to explore a bit more, please replay the game! Is this what you want to do?"
  99.     next = raw_input("> ")
  100.     if next.lower() == "yes":
  101.         entorhinal_cortex()
  102.     else:
  103.         dead("Thanks for playing.")
  104.    
  105. def dead(why):
  106.     print why, "Have a good one."
  107.     exit(0)
  108.  
  109. def start():
  110.     print
  111.     print "Hello. You're about to explore the hippocampus."
  112.     print "There will be many paths and therfore, many decisions you can make."
  113.     print "Enter 'Ready!' when prompted and you can begin your journey."
  114.  
  115.     next = raw_input("> ")  
  116.  
  117.     if next.lower() == "ready!":
  118.         entorhinal_cortex()
  119.     else:
  120.         dead("Maybe another time!")
  121.  
  122. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement