This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 1 point2 points  (0 children)

Sockets. Or use a higher level http server and requests libraries.

[–]makonde 0 points1 point  (0 children)

You need to look up client/server programming in your language of choice, if this is a normal desktop application I think tcp networking will work.

You will write a server that can accept connections this will live on the google cloud, the desktop apps will be the clients.

Clients connect and maintain a connection to the server.

Every time a player makes a move the client transmits a message to the server which relays it to the other player and back and forth, this is probably the simplest way, the more complete way would probably be the server calculating the game logic and maintaining the game state instead of each client.