Commit Graph

9 Commits

Author SHA1 Message Date
Karma Riuk
bfc370bdda Removed useless prints in parser_test 2023-08-07 17:43:01 +02:00
Karma Riuk
8b0fa4c1f9 Moved RawMaze to reader package since it is used
mostly there
2023-08-05 16:36:49 +02:00
Karma Riuk
0e42c0f15d Reader -> Reader+Parser refactoring: COMPLETE
Added a string reader too so that one can create a maze just with a slice of stings and RawMaze now has chunks of bytes to limit memory usage with big mazes (hopefully)
2023-08-05 16:21:56 +02:00
Karma Riuk
ee9d439485 Added isWall and isPath to RawMaze with tests 2023-08-05 12:02:42 +02:00
Karma Riuk
c8e517f73c Moved RaMaze to its own file, cuz we gonna need
some more functions and it would just clutter maze.go
2023-08-05 11:29:53 +02:00
Karma Riuk
435ea54343 Added String() method to RawMaze for debugging
purposes
2023-08-05 11:20:53 +02:00
Karma Riuk
ab6f85b7b6 Reader -> Reader+Parser refacfotring: create the
parser package, moved the parsing aspect of reader
to parser (still have some naughty stuff like
WallChar and PathChar in parser but it'll be fixed
in next commit)
2023-08-05 10:38:46 +02:00
Karma Riuk
4e4dde7ba8 Changed the structure of the Maze struct 2023-08-04 19:11:26 +02:00
Karma Riuk
898d8463c8 Drawn the skeleton code for the structure of the project 2023-08-03 21:07:58 +02:00