/Kiwiland

Kiwiland Railroad

Primary LanguageRuby

Kiwiland is a railroad project which provides detailed and specialised information about routes. It does give the distance along a certain route, the number of different routes between two towns, and the shortest route between two towns.

With a given data Kiwiland project builds its railroad by using directed graph data type as a two dimensional array which is called adjacency matrix keeps the data route consist of from town, to town and the distance between them.

To run Kiwiland

  • bundle install
  • ruby railroad_runner.rb input.txt
  • rspec spec/railroad_spec.rb