[jdev] how to program a jabber game server

Denis Guillaume guillaume_denis at yahoo.fr
Wed Jan 31 03:17:38 CST 2007

So, the only solution (or correct way to do it ?) is to let
a bot handle the game mechanics ?

I mean, when a user perform a game action, the client should
send the server a <message...> to the game bot JID, which
I have to program in a script language ? In that case, the bot may
process the game state, store it in a database, send messages to
the other players, etc... ?

In fact, I've seen a JEP example here (about chess) :
and I thought that the server was directly handling
<chess:rules> or <chess:piece> tags. If this is possible,
is it the right way to do it, and how do we program
a Jabber server ?


----- Message d'origine ----
De : Massimiliano Mirra <iolgzc102 at sneakemail.com>
À : jdev at jabber.org
Envoyé le : Mercredi, 31 Janvier 2007, 0h58mn 04s
Objet : Re: [jdev] how to program a jabber game server

> I am a newbie regarding Jabber technology, trying to figure out if it could
> be the solution for the app I am going to develop : a multi-user online game
> similar to a board game like monopoly.
> First I guess I have to define an XMPP extension adapted to my game,
> describing all the game actions a player can perform through its client. But
> how the Jabber server is going to process this messages, i. e. how am I
> going to program this part (and in what language) ? Is this part of the
> program dependent from Jabber server implementations ?
> Thank you for any response or linked resource,

This video shows a Monopoly game toward the end, based on HTML/JS/CSS
and Google Maps, with game logic handled by a Ruby bot:

A friend wrote it as a demonstration for xmpp4moz.  I'm not sure
whether the code is still maintained, but you can find it here:

Massimiliano Mirra
code: http://dev.hyperstruct.net
blog: http://blog.hyperstruct.net


Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070131/1bcd2332/attachment-0002.htm>

More information about the JDev mailing list