I am trying to make a Texas Holdem LAN game. Game flow is finished and I am now starting server/client-communication using sockets. My question is this:
What is the best way to update changes to the table (player folds etc.) in the clients GUI’s? Is there a favored consept in this situation?
I have a JPanel with the table, communitycards, players etc. – Is it possible (or a good idea) to regularly send this JPanel to the clients?
why send the whole jPanel? that is too much going over the socket.
Just send enough information for each clients GUI to repaint the table themselves.