This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have created a client/server Java Multiplayer Memory Game. One game can have 4 clients. Each player has its own thread which sends/receives game info via a socket. My problem is I would like to add a lobby area that hosts an unlimited number of rooms which contain my memory game. How would I go about making this kind of lobby? Would the lobby just handle the clients connection IDs and spawn a thread for each memory game room. ? Is there any good books about creating multiplayer game lobbies? Or good examples and source??
Any info you can give would be greatly appreciated.
I had thought about creating a new game object, but how would players join the memory game object??? If you pass the socket connectns to the object how would players join once the object has been creted? Any thoughts.. [ November 11, 2005: Message edited by: Diane Tuff ]
Joined: Apr 04, 2004
you could keep a list of all the games, and have a method in the game, addPlayer, I bet.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com