Added argument parsing to run the solver correctly

This commit is contained in:
Karma Riuk
2023-08-11 12:30:37 +02:00
parent e5840321e2
commit d28c118102
7 changed files with 248 additions and 9 deletions

View File

@ -11,7 +11,7 @@ type TextReader struct {
PathChar, WallChar byte
}
func (r TextReader) Read() (*RawMaze, error) {
func (r *TextReader) Read() (*RawMaze, error) {
defer utils.Timer("Text Reader", 3)()
lines, err := getLines(r.Filename)
if err != nil {