Created
May 17, 2016 12:10
-
-
Save fbi1714/6003f9a1224255221979b057d4f48b97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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