Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 936 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 936 Bytes

This is a program where you input a text file consisting of lines of characters.

  • . -> this character means the starting points(default).

  • x -> this character means targets(default).

  • [:space:] -> whitespace means empty cells we can travel to

Any other character means obstacle. The program will read in such file and draw the shortest paths from starting points to targets. The shortest paths will be drawn with @ character(default). You can specify the following options:

  • -s -> the starting point character will be
  • -t -> the target character will be
  • -p -> the paths will be drawn with character
  • -n -> the neighbourhood: 4 for Von Neumann(default), 8 for Moore
  • -o -> the path to file where you want to store the results
  • --maxlen -> maximum path lengths to consider
  • --highlight -> the paths will be highlighted
  • -c -> choose the color for highlighting