Advertisement
Kyfx

Hulk.py game coded

Jul 25th, 2015
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. # This is little game
  2.  
  3. hero = ['hulk','nagraj','spiderman','dhruv','ben10']
  4.  
  5.  
  6. def start():
  7. print "Lets play the 'choose hero' GAME."
  8. print "choose any 1 player from this HERO list %r :- " % hero + "\n"
  9.  
  10. choose = raw_input("> ")
  11.  
  12. if hero[0] in choose:
  13. print " Great you choose 'HULK' hero."
  14. print " HULK have great physical power :D "
  15. print " Here is HULK game start "
  16. hulk_room()
  17. elif hero[1] in choose:
  18. print " Great you choose 'NAGRAJ' hero."
  19. print " NAGRAJ have many powers including :- 'nagrassi etc etc etc' "
  20. print " He has many friends like :- 'NAGU, SAUDANGI, SHITNAAG etc etc' "
  21. print " Here is NAGRAJ game start "
  22. nagraj_room()
  23. elif hero[2] in choose:
  24. print " Great you choose 'SPIDERMAN' hero. "
  25. print " SPIDERMAN has power of SPIDERS. "
  26. print " Here is SPIDERMAN game start "
  27. spiderman_room()
  28. elif hero[3] in choose:
  29. print " Great you choose 'DHRUV' hero. "
  30. print " DHRUV has great super mind Enjoy. "
  31. print " Here is DHRUV game start "
  32. dhruv_room()
  33. elif hero[4] in choose:
  34. print " Great you choose 'Ben10' hero. "
  35. print " Ben10 has ALIEN Power SUPERB. "
  36. print " Here is Ben10 game start "
  37. ben10_room()
  38. else:
  39. print " Please choose any hero. "
  40.  
  41.  
  42.  
  43. def hulk_room():
  44. print " What you want from HULK (You have to type words not number) :- 1. Smash Enemy 2. Play with Enemy"
  45. hulk_smash = False
  46.  
  47.  
  48. while True:
  49. next = raw_input("> ")
  50.  
  51. if next == "Smash Enemy":
  52. print " Now here HULK come our super hero to save us :D, Now he is going to Smash Enemy"
  53. elif next == "Play with Enemy" and not hulk_smash:
  54. print " Hey HULK is cheating with us. He is with enemy and playing with enemy :( "
  55.  
  56. else:
  57. start()
  58.  
  59. def spiderman_room():
  60. print " Which power you want to choose to play (You have to type words not number) :- 1. Spider Web 2. Swing"
  61. spider_web = False
  62.  
  63.  
  64. while True:
  65. next = raw_input("> ")
  66.  
  67. if next == "Spider Web":
  68. print " Spiderman use Spider Web"
  69. elif next == "Swing" and not spider_web:
  70. print " Spiderman now swinging on building "
  71.  
  72. else:
  73. start()
  74.  
  75.  
  76. def nagraj_room():
  77. print " Which power you like to use (You have to type words not number) 1. Nagfani 2. Ichadhari"
  78. nag_fani = False
  79.  
  80.  
  81. while True:
  82. next = raw_input("> ")
  83.  
  84. if next == "Nagfani":
  85. print " Great power you choose. This power gave by Dev 'Kaljayi' to Nagraj"
  86. elif next == "Ichadhari" and not nag_fani:
  87. print " What you want ? wanna Hrithik Roshan :P hahahahaha "
  88.  
  89. else:
  90. start()
  91.  
  92. def dhruv_room():
  93. print " What DHRUV use now (You have to type words not number) :- 1. Mind 2. Starline"
  94. mind = False
  95.  
  96.  
  97. while True:
  98. next = raw_input("> ")
  99.  
  100. if next == "Mind":
  101. print " Worlds most powerful thing is BRAIN mean Mind and DHRUV is master in this :P"
  102. elif next == "Starline" and not mind:
  103. print " DHRUV got criminal now he use starline to contact Headquarter to inform "
  104.  
  105. else:
  106. start()
  107.  
  108. def ben10_room():
  109. print " Which alien you want to use (You have to type words not number) :- 1. XLR8 2. Bigchill"
  110. XLR8 = False
  111.  
  112.  
  113. while True:
  114. next = raw_input("> ")
  115.  
  116. if next == "XLR8":
  117. print " XLR8 now come here and complete this task using your speed :P"
  118. elif next == "Bigchill" and not XLR8:
  119. print " Hey Bigchill i am feeling hot and please use you ice power ",
  120. print " to change climate in this room "
  121.  
  122. else:
  123. start()
  124.  
  125.  
  126. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement