[JDEV] using jabber for multi-user game RFC

Pat Magnan pat at sluggo.org
Wed Jan 8 18:01:25 CST 2003


While the product I'm working on isn't quite a game (it's a bridge bidding 
practice tool), it leverages jabber to do the client to client 
communications, and provide an embedded chat client.

My target audience is Win32, so we used the JabberCOM library, and thus far 
it works quite well.

Because what we're doing is somewhat like a card game (you deal hands to 
the remote player, and transmit bids to each other), I see no reason you 
shouldn't be able to also implement a similar solution.

All I do is transmit the 'game' data in an ordinary message, having the 
application keep track of the 'local' and 'remote' players. I tag the 'game 
data' messages such that I can filter them from the chat window -- i.e. 
players don't see them, but the program parses the appended XML tags, and 
retrieves the data -- hands / bids, and various other application specific 
messages.

Depending on your target platform(s), you should be able to find all you 
need in the jabbercom documentation. Otherwise, there are many libraries 
that are similar for other platforms/languages, and I'd be happy to outline 
in terms of the approach to solve the problem how I've done things, or how 
you could, etc.

Good luck!

At 12:59 PM 1/8/2003 -0800, you wrote:

>In an effort to learn some new technologies, I was
>thinking of implementing a very simple multi-user
>game.  I'm just learning about Jabber, and I was
>wondering if I could use it for this project as an
>alternative to a peer-to-peer model.  The game itself
>will be a card game, nothing too graphics intensive.
>I was hoping someone with more experience with Jabber
>could comment on this, or possibly point me to some
>projects already using Jabber in this way.
>
>Thanks,
>Phil
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list