pymaze icon indicating copy to clipboard operation
pymaze copied to clipboard

Serialize and Read Mazes

Open ThomasThelen opened this issue 6 years ago • 4 comments

It would be great if we had a way to serialize a maze and then initialize a new maze with it. This can easily be done with the sqlite3 module. The first pass can just be an individual maze in a single database file. It can be extended later to save multiple mazes the the database if needed/requested.

I'm initially going to bundle this in to the Maze class, but long term it would really belong in some sort of utility class where non essential things can get bundled(how nice would it be to get the determinant of the maze!).

ThomasThelen avatar Nov 13 '17 03:11 ThomasThelen

After recent updates the way to go about this would be 1. Create serializer.py 2. Create a Serializer class that handles db serialization 3. Create an interface in MazeManager to it 4. Add to examples and unit tests

ThomasThelen avatar Jan 16 '18 15:01 ThomasThelen

This sounds interesting and would be really cool to make work. At the moment I don't have the time to work on this. In general I have to focus on my masters project so I'm not going to be doing much on this project this spring I think. Maybe some small stuff here and there.

jostbr avatar Jan 17 '18 15:01 jostbr

This is coming along slowly... but surely!

ThomasThelen avatar Feb 08 '18 04:02 ThomasThelen

All good. :) I'm sorry I'm not able to contribute more these days. Im'm quite stressed with the project. Next thing I'll to is try to fix the failing unittest in the corners you mentioned.

jostbr avatar Feb 08 '18 12:02 jostbr