Hello
Thanks to the help of a few members on this forum I have managed to finish my school assignment which was to make a chess engine.
The engine itself is complete but there is one thing left to do. My program has to be able to save a Game to a file and be able to load it back from that file.
I've never done Java IO (except basic console stuff) . I watched some videos and read some tutorials but before I try it I have a few questions on how saving (serializing an object to a binary file)
works.
Question:
If I have an instance of a class in my case "ChessGame" which creates instances of the figures "Pawn", "Queen" .. etc and holds many variables then if I save an object of ChessGame
will it automatically save any object generated by ChessGame? So in other words : Can I get away with just saving an instance of ChessGame and not have to save every individual instance of every active figurine on the board?
Thanks in advance for the answer !