Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. puts "Welcome to the Wizarding World of Harry Potter"
  2. puts "Who would you like to accompany you on your journey through Diagon Alley?"
  3. puts "Harry Potter, Neville Longbottom, or Hermione Granger?"
  4. partner = gets.chomp
  5. case partner
  6. when "Harry Potter"
  7. puts "Harry Potter is a great choice! But beware, danger always seems to follow."
  8. when "Neville Longbottom"
  9. puts "Neville Longbottom will keep you safe. He is smarter than he appears."
  10. when "Hermione Granger"
  11. puts "You picked the smartest witch in the class. But beware, danger is always close by."
  12. else
  13. puts "Since you didn't pick one of the options, I guess you can hangout with #{partner}."
  14. end
  15. puts "Oh no! Bellatrix Lastrange just showed up and is looking for you. What spell will you cast?"
  16. puts "Expecto Patronum, Expelliarmus, or Sectumsempra?"
  17. spell = gets.chomp
  18. case spell
  19. when "Expecto Patronum"
  20. puts "Look! Your patronus scared Bellatrix away! Nice job!"
  21. when "Expelliarmus"
  22. puts "You just disarmed Bellatrix! Nice job!"
  23. when "Sectumsempra"
  24. puts "You just cursed Bellatrix!"
  25. else
  26. puts "It looks the the spell you gave worked!"
  27. end
  28. puts "Bellatrix has been stopped and apparated. Keep enjoying your time with #{partner}."
  29. puts "Where would you like to go to in Diagon Alley?"
  30. puts "You can choose between Flourish and Botts, Leaky Cauldron, or Gringotts?"
  31. shop = gets.chomp
  32. case shop
  33. when "Flourish and Botts"
  34. puts "Flourish and Botts is a great shop to get all your books!"
  35. if partner == "Hermione Granger"
  36. puts "You picked the right companion for the day. Hermione loves her books!"
  37. end
  38. when "Leaky Cauldron"
  39. puts "You must be hungry! Don't forget to grab a butter beer while you are there!"
  40. unless partner == "Hermione Granger"
  41. puts "You picked the right place because #{partner} is always hungry."
  42. end
  43. puts "How many butter beers are you going to get?"
  44. beer = gets.chomp
  45. if beer <= "2"
  46. puts "That's smart. Don't drink too much or you won't be able to fly home!"
  47. else
  48. puts "I hope you aren't going to fly or drive after all those drinks!"
  49. end
  50. when "Gringotts"
  51. puts "You must be in the mood to spend money if you are going to the bank. Let's go get your money!"
  52. else
  53. puts "I hope you picked a good place to go or else #{partner} will not be happy."
  54. end
  55. puts "I hope you enjoyed your activity because now it is time for ice cream from Florean Fortescue!"
  56. puts "Let's walk over and see what Florean has to offer."
  57. puts "Look Florean has 3 new flavors: Clotted Cream, Apple Crumble, and Chocolate Chili."
  58. puts "Which flavor would you like?"
  59. flavor = gets.chomp
  60. case flavor
  61. when "Clotted Cream"
  62. puts "Yum! You will enjoy that flavor. It's one of Dumbledore's favorites."
  63. when "Apple Crumble"
  64. puts "Apple Crumble is a nice choice. It's always yummy!"
  65. when "Chocolate Chili"
  66. puts "Well that's pretty unusual. Hope it tastes good!"
  67. end
  68. puts "Thanks for stopping by for ice cream. Since the day is almost over, we hope you enjoy the rest of your night with #{partner}. And stay safe, danger is always around!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement