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) : http://www.xmpp.org/extensions/inbox/chess.html 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 ? Guillaume ----- Message d'origine ---- De : Massimiliano Mirra <[EMAIL PROTECTED]> À : [email protected] 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: http://dev.hyperstruct.net/xmpp4moz/chrome/site/video.html 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: http://dev.hyperstruct.net/xmpp4moz/wiki/RemoteApplications -- 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 http://fr.answers.yahoo.com
