Moved RawMaze to reader package since it is used

mostly there
This commit is contained in:
Karma Riuk
2023-08-05 16:36:49 +02:00
parent fa4c13812d
commit 7e86e29e82
6 changed files with 56 additions and 54 deletions

View File

@ -2,7 +2,6 @@ package reader
import (
"bufio"
"maze-solver/maze"
"os"
)
@ -11,7 +10,7 @@ type TextReader struct {
PathChar, WallChar byte
}
func (r TextReader) Read() (*maze.RawMaze, error) {
func (r TextReader) Read() (*RawMaze, error) {
lines, err := getLines(r.Filename)
if err != nil {
return nil, err