Sunday, March 23, 2008

Card Game Client

I've gotten the hello protocol working. Here you can see a jumble as three clients connect to each other on my machine.




The network topology is arbitrary. That is, any client can act as a server for new players to join. In my example, the client on the left started serving. Then the client on the right connected. The first stopped serving, then the second started. The third client connected to the second. You can see the third client sees welcome from both when it connects. The original two only see the new player when added.

I need to add the in-game messages. And I should probably handle clients quitting gracefully...

No comments: