Original Post
I have a few classes that all implement Serializable and they all need to keep track of each other. I'm making the game multiplayer so I need network programming. So when I wrote the writeOutputStream and readIntputStream methods (maybe not the exact name of the methods) I need to write/read all of the fields in that class. It seems to me, though, that if i do this, it will go into an infinite loop. i.e. board keeps track of pieces and pieces keeps track of board, and so an infinite loop will occur when reading and writing to the input/output stream. Am I mistaken? If not, can someone indicate what to do to solve this problem?