I am working on a hex tile based game and am wondering what the best strategy to save and load my game data is. I have the following data to be stored:
- location and type of the tile
- owner of the tile
- what tiles are left on the deck
- units the player owns and their location
- extra action cards the player holds on hand
- cards left on deck
- overall score per player
- and much much more ...
I was wondering about creating a GameState dict and then just adding all the data to it but realised that e.g. when I add my custom Player class to the dict, it cannot be stored as JSON anymore properly.
What are the general recommendations when it comes to saving data?
Max