PySolFC
PySolFC copied to clipboard
Avoid using pickle and unpickle for loading and saving games
Hi all!
See https://docs.python.org/3/library/pickle.html - it is insecure and makes it hard to share saved game files. We need a different format - perhaps https://metacpan.org/pod/File::Dir::Dumper::Stream::JSON::Reader or https://en.wikipedia.org/wiki/YAML .
Update: seems like kpat already has an xml-based format for saved games which we can adopt instead of inventing our own new one. See https://en.wikipedia.org/wiki/Interoperability .
I started preliminary work on this here - https://github.com/shlomif/PySolFC/tree/kpat-saved-games--issue93 .