Skip to content

Instantly share code, notes, and snippets.

@fbi1714
Created May 17, 2016 12:10
Show Gist options
  • Save fbi1714/6003f9a1224255221979b057d4f48b97 to your computer and use it in GitHub Desktop.
Save fbi1714/6003f9a1224255221979b057d4f48b97 to your computer and use it in GitHub Desktop.
# Declare all the train stations
require "pry"
trainLines = {
"N" => ["Times Square", "34th", "28thN", "23rdN", "Union Square", "8thN"],
"L" => ["8thL", "6th", "Union Square", "3rd", "1st"],
"6" => ["Grand Central", "33rd", "28th6", "23rd6", "Union Square", "Astor Place"],
}
def trainSystem(startingLine, startingStation, endLine, endStation)
puts line1 = trainLines[startingLine]
puts line2 = trainlines[endLine]
end
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment