Skip to content

Instantly share code, notes, and snippets.

@dannyrb
Created October 11, 2018 23:56
Show Gist options
  • Save dannyrb/c883b9a74cc22f51d87d9489b42a35d9 to your computer and use it in GitHub Desktop.
Save dannyrb/c883b9a74cc22f51d87d9489b42a35d9 to your computer and use it in GitHub Desktop.
Harry Potter World Code Kata

HARRY FREAKIN' POTTER WORLD

  • Create a list of Harry Potter world attractions
  • Include information about each attraction
    • Minimum height to ride in inches (0 if there is no minimum)
    • A short description of the attraction
    • A URL to a picture of the attraction

Using the above information, create the following functions:

  1. WhichAttractionsAmITallEnoughFor
  • Should take a the rider's height in inches
  • Should write to the console the name of every ride the rider is tall enough to ride
  1. TellMeMoreAboutAttraction
  • Should take a string argument
  • Should return the description of the attraction with the same name as the string
  • Should return "No Information" if there is no attraction with a matching name
  1. HomenumRevelio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment