overground(newcrossgate,brockley,2).
overground(brockley,honoroakpark,3).
overground(honoroakpark,foresthill,3).
overground(foresthill,sydenham,2).
overground(sydenham,pengewest,3).
Write a rule that displays all of the stations that are within reach from a specified station given a time. e.g. what stations are reachable from Richmond in 15 minutes?
Comments
Leave a comment