changed name of default solution files
This commit is contained in:
parent
d1b50ba372
commit
f08c406ca2
@ -39,11 +39,11 @@ After downloading `maze-solver` from the
|
||||
it with the following arguments
|
||||
|
||||
| Short | Long | Default | Description |
|
||||
| ----- | ----------------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ----- | ----------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| -h | --help | | Print help information |
|
||||
| -v | --verbose | 0 | Verbose level of the solver |
|
||||
| -i | --input | `maze.png` | Input file |
|
||||
| -o | --output | `maze_sol.png` | Output file |
|
||||
| -o | --output | `sol.png` | Output file |
|
||||
| | --path-char-in | `' '` | Character to represent the path in an input text file. |
|
||||
| | --wall-char-in | `'#'` | Character to represent the wall in an input text file. |
|
||||
| | --path-char-out | `' '` | Character to represent the path in an output text file. |
|
||||
@ -52,7 +52,7 @@ it with the following arguments
|
||||
| | --cell-size-out | 3 | Size of a cell (in pixels) for output file of image type. |
|
||||
| -a | --algo | a-star | Algorithm to solve the maze, available options: dfs, bfs, dijkstra, a-star. |
|
||||
| | --visualize | | Visualizer the progress of the solver, available options: video, window.<br> Window will give a live feed of the solver, whereas video creates a video --output with mp4 extension. |
|
||||
| | --video-name | `'maze_sol.mp4'` | Name of the output file if --visualize is set to 'video'. |
|
||||
| | --video-name | `sol.mp4` | Name of the output file if --visualize is set to 'video'. |
|
||||
| | --video-framerate | 60 | Framerate of the video if --visualize is set to 'video'. |
|
||||
|
||||
For the verbose level of the solver
|
||||
|
4
main.go
4
main.go
@ -106,7 +106,7 @@ func parse_arguments() (*reader.ReaderFactory, *writer.WriterFactory, *solver.So
|
||||
writerFactory.Type = writer.TYPES[".png"]
|
||||
writerFactory.Filename = argparser.String("o", "output", &argparse.Options{
|
||||
Help: "Output file",
|
||||
Default: "maze_sol.png",
|
||||
Default: "sol.png",
|
||||
Validate: func(args []string) error {
|
||||
var ok bool
|
||||
extension := args[0][len(args[0])-4:]
|
||||
@ -185,7 +185,7 @@ func parse_arguments() (*reader.ReaderFactory, *writer.WriterFactory, *solver.So
|
||||
|
||||
visFactory.Filename = argparser.String("", "video-name", &argparse.Options{
|
||||
Help: "Name of the output file if --visualize is set to 'video'",
|
||||
Default: "maze_sol.mp4",
|
||||
Default: "sol.mp4",
|
||||
})
|
||||
|
||||
visFactory.Framerate = argparser.Float("", "video-framerate", &argparse.Options{
|
||||
|
Loading…
Reference in New Issue
Block a user