/pather

short exercise in creating paths

Primary LanguageRuby

Pather task accomplished.

Notes:

Depending on the position of the hash characters, it is not possible to only have one change in direction. However, the intent of starting with a vertical direction is maintained.

To set up an executable on your local machine, you must take the following steps. The following steps assume ruby is installed on the local machine and that a linux system is being used.

  1. enter chmod +x pather.rb
  2. enter ./pather.rb input.txt output.txt or any other input and output text file.

rspec tests are also included. To test, simply enter rspec on the command line.